Browse Source

Bugfix: DevAPI: Reduce race-collision delay to 1ms so thread_shutdown actually gets called before threads are killed forcefully

Luke Dashjr 12 years ago
parent
commit
fcb3023a0d
1 changed files with 1 additions and 1 deletions
  1. 1 1
      deviceapi.c

+ 1 - 1
deviceapi.c

@@ -590,7 +590,7 @@ out: ;
 	while ( (proc = proc->next_proc) && !proc->threads);
 	mythr->getwork = 0;
 	mythr->has_pth = false;
-	nmsleep(1000);
+	nmsleep(1);
 	
 	if (drv->thread_shutdown)
 		drv->thread_shutdown(mythr);