Browse Source

do the merge thing

vrld 14 years ago
parent
commit
1f50a932dc
1 changed files with 2 additions and 0 deletions
  1. 2 0
      src/modules/thread/wrap_Thread.cpp

+ 2 - 0
src/modules/thread/wrap_Thread.cpp

@@ -204,7 +204,9 @@ namespace thread
 				return luaL_error(L, "Expected boolean, number, string or userdata");
 		}
 		t->set(name, v);
+		t->lock();
 		v->release();
+		t->unlock();
 		return 0;
 	}