feat(util/script_state): add join method to Lua threads

Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
This commit is contained in:
Leonardo de Moura 2013-12-04 09:15:09 -08:00
parent def186a9cd
commit ef6a27fe84

View file

@ -525,6 +525,7 @@ int thread_wait(lua_State * L) {
static const struct luaL_Reg thread_m[] = {
{"__gc", thread_gc},
{"wait", safe_function<thread_wait>},
{"join", safe_function<thread_wait>},
{"interrupt", safe_function<thread_interrupt>},
{"write", safe_function<thread_write>},
{"read", safe_function<thread_read>},