pike.git/
src/
threads.c
Branch:
Tag:
Non-build tags
All tags
No tags
2002-10-28
2002-10-28 21:53:45 by Martin Stjernholm <mast@lysator.liu.se>
4f6801096b12f458724f68b0a4a563c6735a636f (
9
lines) (+
5
/-
4
)
[
Show
|
Annotate
]
Branch:
7.9
Minor doc fix.
Rev: src/threads.c:1.190
2:
|| This file is part of Pike. For copyright information see COPYRIGHT. || Pike is distributed under GPL, LGPL and MPL. See the file COPYING || for more information.
-
|| $Id: threads.c,v 1.
189
2002/10/28 21:
48
:
09
mast Exp $
+
|| $Id: threads.c,v 1.
190
2002/10/28 21:
53
:
45
mast Exp $
*/ #include "global.h"
-
RCSID("$Id: threads.c,v 1.
189
2002/10/28 21:
48
:
09
mast Exp $");
+
RCSID("$Id: threads.c,v 1.
190
2002/10/28 21:
53
:
45
mast Exp $");
PMOD_EXPORT int num_threads = 1; PMOD_EXPORT int threads_disabled = 0;
966:
*! This function attempts to lock the mutex. If the mutex is already *! locked by a different thread the current thread will sleep until the *! mutex is unlocked. The value returned is the 'key' to the lock. When
-
*! the key is destructed or has no more references the
lock
will
-
*! automatically be unlocked. The key will also be destructed if the
lock
+
*! the key is destructed or has no more references the
mutex
will
+
*! automatically be unlocked. The key will also be destructed if the
mutex
*! is destructed. *! *! The @[type] argument specifies what @[lock()] should do if the