[plt-scheme] threads and mzscheme

From: Hans Oesterholt-Dijkema (hdnews at gawab.com)
Date: Mon May 23 15:13:07 EDT 2005

Hans Oesterholt-Dijkema schreef:

>>>
>> This is probably where the pain is! I'm making a call to C for the 
>> database connection, which
>> will probably block the mzscheme threading system! I'll probably want 
>> to make the database
>> call asynchronous and wait on a semaphore in mzscheme for the 
>> database to return with a
>> result ( I'll need to change sqli :(( ).
>
Could I use C threads (posix or windows) to call PQExec and let the C 
system call
back through the given C thread into (which is not the same as the 
mzscheme system thread!),
 updating an mzscheme semaphore? Looks very dangerous to me.

Are there other ways?

>
> Best whishes,
>
> Hans Oesterholt




Posted on the users mailing list.