Browse Source

disable sentinel if no threads support

Nicolas Cannasse 7 years ago
parent
commit
2c725ed92d
1 changed files with 2 additions and 0 deletions
  1. 2 0
      libs/ui/ui_win.c

+ 2 - 0
libs/ui/ui_win.c

@@ -254,7 +254,9 @@ HL_PRIM vsentinel *HL_NAME(ui_start_sentinel)( double timeout, vclosure *c ) {
 	s->pause = false;
 	s->pause = false;
 	s->original = GetCurrentThreadId();
 	s->original = GetCurrentThreadId();
 	s->callback = c->fun;
 	s->callback = c->fun;
+#	ifdef HL_THREADS
 	s->thread = hl_thread_start(sentinel_loop,s,false);
 	s->thread = hl_thread_start(sentinel_loop,s,false);
+#	endif
 	return s;
 	return s;
 }
 }