GC and threads
Sean Kelly
sean at f4.ca
Sun Jan 28 18:06:15 PST 2007
Saaa wrote:
> As I read it, this is a more general solution than only for ISR routines.
> Any realtime thread should be created this way.
> Is there any reason not to use this way of creating a thread which writes to
> a global variable?
> (Where is the C's _beginthread() reference)
On Windows, you'll want to use _beginthread or _beginthreadex, which are
located in process.h or in std.c.windows.windows in Phobos (I think).
On Unix you'll want to use pthread_create, which is in pthread.h or in
std.c.linux.linux in Phobos (I think).
Sean
More information about the Digitalmars-d
mailing list