Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 16 Apr 2005 13:17:13 GMT
From:      David Xu <davidxu@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 75321 for review
Message-ID:  <200504161317.j3GDHDW2069328@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=75321

Change 75321 by davidxu@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(&param, sizeof(param));
 #if 0



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200504161317.j3GDHDW2069328>