summaryrefslogtreecommitdiff
path: root/Objective-C
diff options
context:
space:
mode:
authorMatthias Benkard <code@mail.matthias.benkard.de>2008-03-04 16:59:42 +0100
committerMatthias Benkard <code@mail.matthias.benkard.de>2008-03-04 16:59:42 +0100
commitcb2858af09521a572ba8d222f1d1b21324ab6f44 (patch)
treef421a09b9b65189b1d314567c72d9e00c9b56b68 /Objective-C
parent3bb7048d77f9e3888d4cf8d2cfa742b6956d3f7c (diff)
Acquire the exception lock when returning from a callback.
darcs-hash:f644e3e364ebb7bd2c81aa2c7f83a4887ac644d8
Diffstat (limited to 'Objective-C')
-rw-r--r--Objective-C/libobjcl.m4
1 files changed, 4 insertions, 0 deletions
diff --git a/Objective-C/libobjcl.m b/Objective-C/libobjcl.m
index b3fe789..d32a37c 100644
--- a/Objective-C/libobjcl.m
+++ b/Objective-C/libobjcl.m
@@ -775,6 +775,8 @@ objcl_create_imp (IMP callback,
void
objcl_acquire_lock (id lock)
{
+ TRACE (@"acquire-lock");
+ TRACE (@" %@", lock);
[lock lock];
TRACE (@"Lock %@ acquired.", lock);
}
@@ -783,6 +785,8 @@ objcl_acquire_lock (id lock)
void
objcl_release_lock (id lock)
{
+ TRACE (@"release-lock");
+ TRACE (@" %@", lock);
[lock unlock];
TRACE (@"Lock %@ released.", lock);
}