PERFORCE change 75321 for review
David Xu
davidxu at FreeBSD.org
Sat Apr 16 06:17:14 PDT 2005
http://perforce.freebsd.org/chv.cgi?CH=75321
Change 75321 by davidxu at davidxu_tiger on 2005/04/16 13:17:01
Now we actually support PTHREAD_SCOPE_PROCESS and PTHREAD_SCOPE_SYSTEM.
Affected files ...
.. //depot/projects/davidxu_thread/src/lib/libthr/thread/thr_create.c#12 edit
Differences ...
==== //depot/projects/davidxu_thread/src/lib/libthr/thread/thr_create.c#12 (text+ko) ====
@@ -179,6 +179,8 @@
param.parent_tid = &new_thread->tid;
param.user_crit = 0;
param.flags = 0;
+ if (new_thread->attr.flags & PTHREAD_SCOPE_SYSTEM)
+ param.flags |= THR_SYSTEM_SCOPE;
/* Schedule the new thread. */
ret = thr_create2(¶m, sizeof(param));
#if 0
More information about the p4-projects
mailing list