public boolean hleKernelUnRegisterCallback(int callbackType,int cbid){
  boolean found=false;
  for (  SceKernelThreadInfo thread : threadMap.values()) {
    RegisteredCallbacks registeredCallbacks=thread.getRegisteredCallbacks(callbackType);
    pspBaseCallback callback=registeredCallbacks.getCallbackInfoByUid(cbid);
    if (callback != null) {
      found=true;
      if (registeredCallbacks.isCallbackReady(callback)) {
        log.warn("hleKernelUnRegisterCallback(type=" + callbackType + ") removing pending callback");
      }
      registeredCallbacks.removeCallback(callback);
      break;
    }
  }
  if (!found) {
    log.warn("hleKernelUnRegisterCallback(type=" + callbackType + ") cbid="+ Integer.toHexString(cbid)+ " no matching callbacks found");
  }
  return found;
}

public boolean hleKernelUnRegisterCallback ( int callbackType , int cbid ) { boolean found = false ; for ( SceKernelThreadInfo thread : threadMap . values ( ) ) { RegisteredCallbacks registeredCallbacks = thread . getRegisteredCallbacks ( callbackType ) ; pspBaseCallback callback = registeredCallbacks . getCallbackInfoByUid ( cbid ) ; if ( callback != null ) { found = true ; if ( registeredCallbacks . isCallbackReady ( callback ) ) { log . warn ( "hleKernelUnRegisterCallback(type=" + callbackType + ") removing pending callback" ) ; } registeredCallbacks . removeCallback ( callback ) ; break ; } } if ( ! found ) { log . warn ( "hleKernelUnRegisterCallback(type=" + callbackType + ") cbid=" + Integer . toHexString ( cbid ) + " no matching callbacks found" ) ; } return found ; }
unregisters a callback by type and cbid . may not be on the current thread .
