Cannot get thread ID with Thread.getThis() in specific callback functions on Windows

Haruki Shigemori rayerd.wiz at gmail.com
Mon Dec 13 18:54:11 PST 2010


> (2010/12/10 17:18), Rainer Schuetze wrote:
>> It is rather delicate to modify the windows TLS data structures, so an
>> option might be to not touch any TLS in the waveInProc (including any
>> memory allocations), but to just set an event to notify another thread
>> that has been created with "new Thread".
>
> I understood that any memory allocations were not possible in these
> functions.
> Though I wanted to use std.concurrency.send, but it is impossible.
> Thank you.

Cannot we use some memory allocations such as "assert" and "new Exception"?


More information about the Digitalmars-d mailing list