[haXe] cacheModule and global variables with threads
Nicolas Cannasse
ncannasse at motion-twin.com
Mon Jul 2 09:21:00 CEST 2007
> Hi,
>
> I'm wondering with the neko.cacheModule fuction (which I assume
> activates "application mode" of mod_neko) are global variables thread
> safe? Is there some kind of locking in place that allows variables to be
> modified from the "entry point" function without race conditions?
In the case the server runs in multithread, one VM is created per thread
and per request, and each thread have its own cache, so you don't have
to worry about MT issues.
Best,
Nicolas
More information about the Haxe
mailing list