Callbacks from C yet?
[1/5] from: maarten::koopmans::surfnet::nl at: 30-Dec-2002 11:57
All,
Can I do callbacks from C already with the SDK? So, can I provide a
callback function to a C function?
If so, how? Documentation?
--Maarten
[2/5] from: greggirwin:mindspring at: 30-Dec-2002 9:48
Hi Maarten,
MK> Can I do callbacks from C already with the SDK? So, can I provide a
MK> callback function to a C function?
MK> If so, how? Documentation?
Not AFAIK.
-- Gregg
[3/5] from: nitsch-lists:netcologne at: 31-Dec-2002 1:13
Gregg Irwin wrote:
>Hi Maarten,
>
>MK> Can I do callbacks from C already with the SDK? So, can I provide a
>MK> callback function to a C function?
>MK> If so, how? Documentation?
>
>Not AFAIK.
>
could be possible with multiple threads, system-port and sending
messages/signals between threads.
but how to figure out how that works?
[4/5] from: greggirwin:mindspring at: 30-Dec-2002 19:14
Hi Volker,
VN> could be possible with multiple threads, system-port and sending
VN> messages/signals between threads. but how to figure out how that works?
Depends on the need. Most callback mechanisms require you to give them
a function pointer to call back to.
-- Gregg
[5/5] from: nitsch-lists:netcologne at: 31-Dec-2002 4:59
Gregg Irwin wrote:
>Hi Volker,
>
>VN> could be possible with multiple threads, system-port and sending
>VN> messages/signals between threads. but how to figure out how that works?
>
>Depends on the need. Most callback mechanisms require you to give them
>a function pointer to call back to.
>
yes. i would use a callback-thread. this thread would set the callback.
when callbacked, it signals rebol something happens. rebol listens on
system-port and can react.