浏览代码

bugfix for lock_release when no threads

Nicolas Cannasse 6 年之前
父节点
当前提交
f60652390f
共有 1 个文件被更改,包括 0 次插入1 次删除
  1. 0 1
      src/std/thread.c

+ 0 - 1
src/std/thread.c

@@ -383,7 +383,6 @@ HL_PRIM hl_lock *hl_lock_create() {
 
 HL_PRIM void hl_lock_release( hl_lock *l ) {
 #	if !defined(HL_THREADS)
-	return true;
 #	elif defined(HL_WIN)
 	ReleaseSemaphore(l->wait,1,NULL);
 #	else