BLooper: API to hijack existing thread.
I need this to use loopers in WebKit, which spawns threads and expects to be able to turn them into event loops later on. This is the pattern already used in BApplication, we may as well make it available elsewhere. Change-Id: I5939ca89d33cb3bcc92567b302c2038d976af598 Reviewed-on: https://review.haiku-os.org/735 Reviewed-by: Axel Dörfler <[email protected]> Reviewed-by: waddlesplash <[email protected]>
This commit is contained in:
committed by
waddlesplash
parent
4bba0571c6
commit
151343ebc8
@@ -69,6 +69,7 @@ public:
|
||||
|
||||
// Loop control
|
||||
virtual thread_id Run();
|
||||
void Loop();
|
||||
virtual void Quit();
|
||||
virtual bool QuitRequested();
|
||||
bool Lock();
|
||||
|
||||
Reference in New Issue
Block a user