diff options
author | Malcolm Beattie <mbeattie@sable.ox.ac.uk> | 1997-04-23 19:06:45 +0000 |
---|---|---|
committer | Malcolm Beattie <mbeattie@sable.ox.ac.uk> | 1997-04-23 19:06:45 +0000 |
commit | f93b4edd807be1c6102dad09f884828c27c4a58b (patch) | |
tree | 137d9c548c5e8c0dcbd6c3a76c121b5ce06ff663 /mg.c | |
parent | b35b24033ff5a2171d5dc795e027358506aa01ff (diff) | |
download | perl-f93b4edd807be1c6102dad09f884828c27c4a58b.tar.gz |
Added programmer-level condition variables via "condpair" magic.
Added support for detached threads and tweaked a few things.
p4raw-id: //depot/thrperl@8
Diffstat (limited to 'mg.c')
-rw-r--r-- | mg.c | 15 |
1 files changed, 15 insertions, 0 deletions
@@ -1340,6 +1340,21 @@ MAGIC* mg; return 0; } +#ifdef USE_THREADS +int +magic_mutexfree(sv, mg) +SV *sv; +MAGIC *mg; +{ + dTHR; + if (MgOWNER(mg)) + croak("panic: magic_mutexfree"); + MUTEX_DESTROY(MgMUTEXP(mg)); + COND_DESTROY(MgCONDP(mg)); + return 0; +} +#endif /* USE_THREADS */ + I32 whichsig(sig) char *sig; |