From c41f897304100c89451e91acb0a47b3f07fc7b51 Mon Sep 17 00:00:00 2001
From: lantw44 <lantw44@gmail.com>
Date: Sat, 26 Jan 2013 20:29:09 +0800
Subject: 清除所有 pthread_cancel()
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

已使用 sem_timedwait 和 sem_post 取代所有以往需要 pthread_cancel 的地方
---
 src/sctcore.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'src/sctcore.h')

diff --git a/src/sctcore.h b/src/sctcore.h
index 98bbda5..13c8783 100644
--- a/src/sctcore.h
+++ b/src/sctcore.h
@@ -21,7 +21,7 @@ extern char tkill_yes, tdisplay_yes;
 extern pthread_mutex_t tkill_mx, tdisplay_mx;
 
 /* 用來讓另外兩個 thread 卡住的 semaphore */
-extern sem_t mcthr, addthr;
+extern sem_t mcthr, tlethr, dispthr;
 
 /* 判斷有無 TLE,此變數由 sctjudge_checktle 設定 */
 extern char judge_tle;
-- 
cgit