Re: external events api
Roderic Morris <[email protected]> Sat, 13 Aug 2011 21:27:20 -0400
| Newsgroups | gmane.lisp.scheme.scheme48 |
|---|---|
| Message-ID | <[email protected]> |
On Aug 13, 2011, at 10:01 AM, Michael Sperber wrote: > Roderic Morris <[email protected]> writes: >> >> I understand that. The problem is that some of those calls are *never* >> handled. I've left the process idling for quite a while without them >> being woken. Moreover, after the first time a thread fails to wake up, >> all subsequent calls to s48_note_external_event have no effect, even >> on brand new event ids. > > Details, please. I'm not sure what else to say. The patch and example code I gave a couple emails back demonstrate the behavior I'm talking about, if you'd like a clearer illustration. If the waits are done too close together (and thus the calls to s48_note_external_event are performed close together), some of the threads are not woken and sleep indefinitely. Further calls to wait (which end in calls to wait-for-external-event) are never woken as well. -Roderic