projects
/
mit-scheme.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b5a39ad
)
Allow no runnable threads nor timers.
author
Matt Birkholz
<matt@birkholz.chandler.az.us>
Sat, 16 Jul 2011 00:46:01 +0000
(17:46 -0700)
committer
Matt Birkholz
<matt@birkholz.chandler.az.us>
Sat, 16 Jul 2011 00:46:01 +0000
(17:46 -0700)
The console thread may be reading from a GInputStream, i.e. waiting
for a callback to make it runnable.
src/gtk/thread.scm
patch
|
blob
|
history
diff --git
a/src/gtk/thread.scm
b/src/gtk/thread.scm
index c3dabca334d2216d164b2e9d005bb6c4ec925e45..81b7083e469bb6d07873e0070c8db88c6439cdb7 100644
(file)
--- a/
src/gtk/thread.scm
+++ b/
src/gtk/thread.scm
@@
-75,7
+75,8
@@
USA.
(detach-thread gtk-thread))
(define (no-threads-nor-timers)
- (error "gtk-thread: no threads, no timers: "next-scheduled-timeout))
+ ;; Wake up once a minute, just to see if you can...
+ (+ (real-time-clock) (* 60 1000)))
(define (exit-gtk-thread)
(let ((thread gtk-thread))