diff options
author | ridiculousfish <corydoras@ridiculousfish.com> | 2013-11-29 13:31:18 -0800 |
---|---|---|
committer | ridiculousfish <corydoras@ridiculousfish.com> | 2013-11-29 13:34:03 -0800 |
commit | 4aaa9e7d9fd08ad3129b3b7ed0c82f368611ea6f (patch) | |
tree | 656c404859b120f80e4f06b52343e14f34042950 /iothread.cpp | |
parent | e1608362d0d1da493153e6884486ce82deab27dd (diff) |
Allow autosuggestions to do job expansion. Fixes
Diffstat (limited to 'iothread.cpp')
-rw-r--r-- | iothread.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/iothread.cpp b/iothread.cpp index 6f07aec0..73646792 100644 --- a/iothread.cpp +++ b/iothread.cpp @@ -305,7 +305,11 @@ static void iothread_service_main_thread_requests(void) int iothread_perform_on_main_base(int (*handler)(void *), void *context) { - ASSERT_IS_BACKGROUND_THREAD(); + // If this is the main thread, just do it + if (is_main_thread()) + { + return handler(context); + } // Make a new request. Note we are synchronous, so this can be stack allocated! MainThreadRequest_t req; |