lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


Mark Hamburg:
>For preemptive C threads, what I'm currently doing is
>generating a lua_State per C thread and using a single
>mutex managed by lua_lock and lua_unlock to coordinate
>amongst them.
How avoid using lua_lock/lua_unlock in such case?
1) Threads have own environment and only reads of global.
In incremental-GC they may interfere?
2) Set maximum gc-threshold and sometimes start a separate 
privileged thread to GC?