File: workqueue_init

package info (click to toggle)
libdispatch 0~svn188-2
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 3,448 kB
  • ctags: 1,652
  • sloc: sh: 10,139; ansic: 8,999; makefile: 229; objc: 37; cpp: 14
file content (16 lines) | stat: -rw-r--r-- 567 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
Description: initialize pthread_workqueue library before using it
 Not sure why Darwin doesn't require this..
Author: Mark Heily <mark@heily.com>

Index: libdispatch-0.1/src/queue.c
===================================================================
--- libdispatch-0.1.orig/src/queue.c	2010-07-01 23:13:18.000000000 -0400
+++ libdispatch-0.1/src/queue.c	2010-07-01 23:13:34.000000000 -0400
@@ -1062,6 +1062,7 @@
 	_dispatch_thread_setspecific(dispatch_queue_key, &_dispatch_main_q);
 
 	_dispatch_queue_set_width_init();
+    pthread_workqueue_init_np();
 }
 
 void