2001-10-01
2001-10-01 15:07:48 by Per Hedbor <ph@opera.com>
-
76fac874f53107557f3a52fb7b20c0d9f015b2c6
(6 lines)
(+4/-2)
[
Show
| Annotate
]
Branch: 5.2
Allow recursive mutex locks in the replication system
Rev: server/arg_cache_plugins/replicate.pike:1.7
Rev: server/base_server/roxen.pike:1.747
6:
// Per Hedbor, Henrik Grubbström, Pontus Hagland, David Hedbor and others.
// ABS and suicide systems contributed freely by Francesco Chemolli
- constant cvs_version="$Id: roxen.pike,v 1.746 2001/09/28 23:50:31 nilsson Exp $";
+ constant cvs_version="$Id: roxen.pike,v 1.747 2001/10/01 15:07:47 per Exp $";
// The argument cache. Used by the image cache.
ArgCache argcache;
3049: Inside #if defined(THREADS)
#ifdef THREADS
Thread.Mutex mutex = Thread.Mutex();
- # define LOCK() mixed __ = mutex->lock()
+ // Allow recursive locks, since it's normal here.
+ # define LOCK() mixed __; catch( __ = mutex->lock() )
#else
# define LOCK()
#endif