aboutsummaryrefslogtreecommitdiffstats
path: root/mps/code/pthrdext.c
diff options
context:
space:
mode:
authorRichard Brooksby2002-06-07 16:47:14 +0100
committerRichard Brooksby2002-06-07 16:47:14 +0100
commit97075f705350901f5ff46387f658ab459a4cd73f (patch)
tree4349ad5e7200f072a800f48749d57f3625757e7e /mps/code/pthrdext.c
parent8b990e4858b6f6d735de07a241b1785702bb16e7 (diff)
downloademacs-97075f705350901f5ff46387f658ab459a4cd73f.tar.gz
emacs-97075f705350901f5ff46387f658ab459a4cd73f.zip
Updating cross references to design documents to html style, to go with master/design document tree.
Copied from Perforce Change: 29897 ServerID: perforce.ravenbrook.com
Diffstat (limited to 'mps/code/pthrdext.c')
-rw-r--r--mps/code/pthrdext.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/mps/code/pthrdext.c b/mps/code/pthrdext.c
index 5d19a744977..1aa4be26222 100644
--- a/mps/code/pthrdext.c
+++ b/mps/code/pthrdext.c
@@ -5,7 +5,7 @@
5 * 5 *
6 * .purpose: Provides extension to Pthreads. 6 * .purpose: Provides extension to Pthreads.
7 * 7 *
8 * .design: see design.mps.pthreadext 8 * .design: see <design/pthreadext/>
9 * 9 *
10 * .acknowledgements: This was derived from code posted to 10 * .acknowledgements: This was derived from code posted to
11 * comp.programming.threads by Dave Butenhof and Raymond Lau 11 * comp.programming.threads by Dave Butenhof and Raymond Lau
@@ -36,7 +36,7 @@ SRCID(pthreadext, "$Id$");
36 36
37/* PTHREADEXT_SIGSUSPEND, PTHREADEXT_SIGRESUME -- signals used 37/* PTHREADEXT_SIGSUSPEND, PTHREADEXT_SIGRESUME -- signals used
38 * 38 *
39 * See design.mps.pthreadext.impl.signals 39 * See <design/pthreadext/#impl.signals>
40 */ 40 */
41 41
42#define PTHREADEXT_SIGSUSPEND SIGXFSZ 42#define PTHREADEXT_SIGSUSPEND SIGXFSZ
@@ -44,7 +44,7 @@ SRCID(pthreadext, "$Id$");
44 44
45 45
46/* Static data initiatialized on first use of the module 46/* Static data initiatialized on first use of the module
47 * See design.mps.pthreadext.impl.static.* 47 * See <design/pthreadext/#impl.static>.*
48 */ 48 */
49 49
50/* mutex */ 50/* mutex */
@@ -59,7 +59,7 @@ static Bool pthreadextModuleInitialized = FALSE;
59 59
60 60
61/* Global variables protected by the mutex 61/* Global variables protected by the mutex
62 * See design.mps.pthreadext.impl.global.* 62 * See <design/pthreadext/#impl.global>.*
63 */ 63 */
64 64
65static PThreadext suspendingVictim = NULL; /* current victim */ 65static PThreadext suspendingVictim = NULL; /* current victim */
@@ -68,7 +68,7 @@ static RingStruct suspendedRing; /* PThreadext suspend ring */
68 68
69/* suspendSignalHandler -- signal handler called when suspending a thread 69/* suspendSignalHandler -- signal handler called when suspending a thread
70 * 70 *
71 * See design.mps.pthreadext.impl.suspend-handler 71 * See <design/pthreadext/#impl.suspend-handler>
72 * 72 *
73 * The interface for determining the MFC might be platform specific. 73 * The interface for determining the MFC might be platform specific.
74 * 74 *
@@ -140,7 +140,7 @@ static void suspendSignalHandler(int sig,
140 140
141/* resumeSignalHandler -- signal handler called when resuming a thread 141/* resumeSignalHandler -- signal handler called when resuming a thread
142 * 142 *
143 * See design.mps.pthreadext.impl.suspend-handler 143 * See <design/pthreadext/#impl.suspend-handler>
144 */ 144 */
145 145
146static void resumeSignalHandler(int sig) 146static void resumeSignalHandler(int sig)
@@ -152,7 +152,7 @@ static void resumeSignalHandler(int sig)
152 152
153/* PThreadextModuleInit -- Initialize the PThreadext module 153/* PThreadextModuleInit -- Initialize the PThreadext module
154 * 154 *
155 * See design.mps.pthreadext.impl.static.init 155 * See <design/pthreadext/#impl.static.init>
156 * 156 *
157 * Dynamically initialize all state when first used 157 * Dynamically initialize all state when first used
158 * (called by pthread_once). 158 * (called by pthread_once).
@@ -263,7 +263,7 @@ extern void PThreadextInit(PThreadext pthreadext, pthread_t id)
263 263
264/* PThreadextFinish -- Finish a pthreadext 264/* PThreadextFinish -- Finish a pthreadext
265 * 265 *
266 * See design.mps.pthreadext.impl.finish 266 * See <design/pthreadext/#impl.finish>
267 */ 267 */
268 268
269extern void PThreadextFinish(PThreadext pthreadext) 269extern void PThreadextFinish(PThreadext pthreadext)
@@ -297,7 +297,7 @@ extern void PThreadextFinish(PThreadext pthreadext)
297 297
298/* PThreadextSuspend -- suspend a thread 298/* PThreadextSuspend -- suspend a thread
299 * 299 *
300 * See design.mps.pthreadext.impl.suspend 300 * See <design/pthreadext/#impl.suspend>
301 */ 301 */
302 302
303Res PThreadextSuspend(PThreadext target, MutatorFaultContext *contextReturn) 303Res PThreadextSuspend(PThreadext target, MutatorFaultContext *contextReturn)
@@ -359,7 +359,7 @@ unlock:
359 359
360/* PThreadextResume -- resume a suspended thread 360/* PThreadextResume -- resume a suspended thread
361 * 361 *
362 * See design.mps.pthreadext.impl.resume 362 * See <design/pthreadext/#impl.resume>
363 */ 363 */
364 364
365Res PThreadextResume(PThreadext target) 365Res PThreadextResume(PThreadext target)