Proposal: System.Timeout module for base
Einar Karttunen
ekarttun at cs.helsinki.fi
Tue Jan 30 11:38:06 EST 2007
On 30.01 12:20, Simon Marlow wrote:
> How would you interrupt the FFI call when the timeout expired?
> pthread_cancel(), maybe?
That is one solution. Just letting it running and returning
is "good enough" for most things. One common thing would be
network related functions if implemented in a blocking way (over
various C libraries). They usually do need timeouts and are
blocking FFI calls.
- musasabi
More information about the Libraries
mailing list