HCoop
/
bpt
/
guile.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7751157
)
(scm_system_async_mark_for_thread): Validate thread argument.
author
Marius Vollmer
<mvo@zagadka.de>
Wed, 16 Oct 2002 16:27:46 +0000
(16:27 +0000)
committer
Marius Vollmer
<mvo@zagadka.de>
Wed, 16 Oct 2002 16:27:46 +0000
(16:27 +0000)
libguile/async.c
patch
|
blob
|
blame
|
history
diff --git
a/libguile/async.c
b/libguile/async.c
index
6b133fb
..
3d99f59
100644
(file)
--- a/
libguile/async.c
+++ b/
libguile/async.c
@@
-230,10
+230,13
@@
SCM_DEFINE (scm_system_async_mark_for_thread, "system-async-mark", 1, 1, 0,
#define FUNC_NAME s_scm_system_async_mark_for_thread
{
#ifdef USE_THREADS
+ if (SCM_UNBNDP (thread))
+ thread = scm_current_thread ();
+ else
+ SCM_VALIDATE_THREAD (2, thread);
+
scm_i_queue_async_cell (scm_cons (proc, SCM_BOOL_F),
- (SCM_UNBNDP (thread)
- ? scm_root
- : scm_i_thread_root (thread)));
+ scm_i_thread_root (thread));
#else
scm_i_queue_async_cell (scm_cons (proc, SCM_BOOL_F), scm_root);
#endif