소스 검색

do the merge thing

vrld 14 년 전
부모
커밋
1f50a932dc
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  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;
 	}