Re: Attn: Robert (Non-Blocking Support Revisited)
- Posted by Robert Craig <rds at RapidEuphoria.com> Mar 22, 2007
- 682 views
C Bouzy wrote: > Hello Robert, > > As you know I have been pushing for non-blocking support to be added to EU for > quite sometime. I have tried some of the suggested alternatives with no avail. > Certain libraries/dlls I use do not work with the alternatives you and others > suggested. I can pretty much do everything I need with EU, but non-blocking > support is the only hurtle that I have yet to overcome. In the past I have > been > able to find workarounds, but I am increasingly finding it more difficult to > find suitable alternatives. Is there any way I can persuade you to begin work > on officially adding non-blocking support to EU? I haven't started on this yet. All I was hoping to do was somehow wrap the asynchronous I/O capabilities of the WIN32 ReadFileEx and WriteFileEx routines, and add a couple of easy-to-use Euphoria library routines (in an include file). Other people could also try to do this. I'm not sure if any Euphoria-internal C-code is needed. It would complement Euphoria's cooperative multitasking capabilities if there was a way for a task to start some I/O and then poll periodically for completion, while other tasks are free to run. I would also try to implement the same functionality on Linux/FreeBSD. Another possibility is for a call-back to occur upon I/O completion, but somehow polling seems to fit nicer with Euphoria's multitasking. I haven't looked at Daniel's latest SDLL yet, though I definitely should, before starting to work on this. In general, I think we need some time to experiment before trying to package this stuff officially. > Hello Jonas, > > One library in particular is bass. The function BASSStreamCreateURL will not > work with TDLL. I have no idea if what I am planning would solve this problem for you. Maybe you can experiment by trying to somehow wrap ReadFileEx/WriteFileEx by yourself. It actually looks a bit more complicated than I imagined at first. Regards, Rob Craig Rapid Deployment Software http://www.RapidEuphoria.com