async.h 418 B

123456789101112131415161718192021
  1. #ifndef BB_MOJO_APP_ASYNC_H
  2. #define BB_MOJO_APP_ASYNC_H
  3. #include <bbmonkey.h>
  4. //Call on GUI thread only!
  5. //
  6. int bbAddAsyncCallback( bbFunction<void()> callback );
  7. //Can call on any thread...queued for later execution by GUI thread.
  8. //
  9. void bbInvokeAsyncCallback( int callback,bool remove );
  10. void bbRemoveAsyncCallback( int callback );
  11. void bbAppFiberSleep( int millis );
  12. void bbAppSetPostEventFilter();
  13. #endif