[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Guile-commits] GNU Guile branch, stable-2.0, updated. v2.0.9-114-g8f0ec
From: |
Andy Wingo |
Subject: |
[Guile-commits] GNU Guile branch, stable-2.0, updated. v2.0.9-114-g8f0ecae |
Date: |
Thu, 28 Nov 2013 15:20:49 +0000 |
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU Guile".
http://git.savannah.gnu.org/cgit/guile.git/commit/?id=8f0ecae98c7bef8b927287b38d12360296c236a4
The branch, stable-2.0 has been updated
via 8f0ecae98c7bef8b927287b38d12360296c236a4 (commit)
from d364a8971828e38e8f9112b711066f4962bb400e (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 8f0ecae98c7bef8b927287b38d12360296c236a4
Author: Andy Wingo <address@hidden>
Date: Thu Nov 28 16:20:42 2013 +0100
Critical sections in guardians do not need to block asyncs
* libguile/guardians.c: Critical sections here cannot cause an
async_tick, so they do not need to block asyncs.
-----------------------------------------------------------------------
Summary of changes:
libguile/guardians.c | 13 ++++++-------
1 files changed, 6 insertions(+), 7 deletions(-)
diff --git a/libguile/guardians.c b/libguile/guardians.c
index 2bf07a8..d6cfb2f 100644
--- a/libguile/guardians.c
+++ b/libguile/guardians.c
@@ -50,7 +50,6 @@
#endif
#include "libguile/_scm.h"
-#include "libguile/async.h"
#include "libguile/ports.h"
#include "libguile/print.h"
#include "libguile/smob.h"
@@ -145,7 +144,7 @@ finalize_guarded (void *ptr, void *finalizer_data)
g = GUARDIAN_DATA (SCM_CAR (guardian_list));
- scm_i_pthread_mutex_lock_block_asyncs (&g->mutex);
+ scm_i_pthread_mutex_lock (&g->mutex);
if (g->live == 0)
abort ();
@@ -161,7 +160,7 @@ finalize_guarded (void *ptr, void *finalizer_data)
g->live--;
- scm_i_pthread_mutex_unlock_unblock_asyncs (&g->mutex);
+ scm_i_pthread_mutex_unlock (&g->mutex);
}
if (scm_is_true (proxied_finalizer))
@@ -212,7 +211,7 @@ scm_i_guard (SCM guardian, SCM obj)
void *prev_data;
SCM guardians_for_obj, finalizer_data;
- scm_i_pthread_mutex_lock_block_asyncs (&g->mutex);
+ scm_i_pthread_mutex_lock (&g->mutex);
g->live++;
@@ -256,7 +255,7 @@ scm_i_guard (SCM guardian, SCM obj)
SCM_SETCAR (finalizer_data, proxied_finalizer);
}
- scm_i_pthread_mutex_unlock_unblock_asyncs (&g->mutex);
+ scm_i_pthread_mutex_unlock (&g->mutex);
}
}
@@ -266,7 +265,7 @@ scm_i_get_one_zombie (SCM guardian)
t_guardian *g = GUARDIAN_DATA (guardian);
SCM res = SCM_BOOL_F;
- scm_i_pthread_mutex_lock_block_asyncs (&g->mutex);
+ scm_i_pthread_mutex_lock (&g->mutex);
if (!scm_is_null (g->zombies))
{
@@ -275,7 +274,7 @@ scm_i_get_one_zombie (SCM guardian)
g->zombies = SCM_CDR (g->zombies);
}
- scm_i_pthread_mutex_unlock_unblock_asyncs (&g->mutex);
+ scm_i_pthread_mutex_unlock (&g->mutex);
return res;
}
hooks/post-receive
--
GNU Guile
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Guile-commits] GNU Guile branch, stable-2.0, updated. v2.0.9-114-g8f0ecae,
Andy Wingo <=