How do I force something onto the heap? (need for libev)
Mike Parker
aldacron at gmail.com
Mon Mar 5 21:17:40 PST 2012
On 3/6/2012 2:10 PM, Tyler Jameson Little wrote:
> Oh, thanks! I missed your reply.
>
> That sounds reasonable, and a lot better than my super hacky Socket[].
>
> Thanks!
I've never used libev and am only vaguely familiar with it. But if the
callbacks are called from outside the main thread, you'll likely need to
mark your socket map as shared or __gshared to guarantee you aren't
working with thread-local data.
More information about the Digitalmars-d-learn
mailing list