main_notify: removed assertion in wakeup_main_task()
It is legal to call wakeup_main_task() from within the main thread, e.g. from within a signal handler. Remove the assertion.
This commit is contained in:
@@ -85,8 +85,6 @@ static int wakeup_via_pipe(void)
|
|||||||
|
|
||||||
void wakeup_main_task(void)
|
void wakeup_main_task(void)
|
||||||
{
|
{
|
||||||
assert(!pthread_equal(main_task, pthread_self()));
|
|
||||||
|
|
||||||
main_notify.pending = 1;
|
main_notify.pending = 1;
|
||||||
|
|
||||||
if (!wakeup_via_pipe())
|
if (!wakeup_via_pipe())
|
||||||
|
Reference in New Issue
Block a user