0

Suppose i have one lua stack:

lua_State* L

From the first thread, I only add elements to the lua stack and remove elements from the top of the stack.

From the second thread, I read from the Lua stack - ONLY guaranteed to exist items on the stack.That is, when I read from the stack, this element is guaranteed to exist.

Question: should I keep this stack under a mutex?

Egor Skriptunoff
  • 23,359
  • 2
  • 34
  • 64
Lua_beg
  • 31
  • 6

0 Answers0