[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: interleaved pcalls (multi-threading)
- From: Gaspard Bucher <gaspard@...>
- Date: Fri, 31 Dec 2010 23:53:53 +0100
I think I am doing something evil but I'd like some internal highlights on why this does not work:
Scenario:
thread A --> pcall(1) --> in Lua --> in C (unlock, sleep) ... wait for lock . .........lock --> end pcall(1)
thread B ... wait for lock ............... lock, pcall(2) --> in Lua --> end pcall(2), unlock
Is this ok ? If it is not, how can I keep track of multiple "paths" into the application ?
Many thanks for any help,
Gaspard