浏览代码

* removed stray try/finally statement (mantis #23333)

git-svn-id: trunk@23010 -
Jonas Maebe 12 年之前
父节点
当前提交
676db6d377
共有 1 个文件被更改,包括 6 次插入9 次删除
  1. 6 9
      rtl/unix/cthreads.pp

+ 6 - 9
rtl/unix/cthreads.pp

@@ -776,15 +776,12 @@ end;
 procedure IntbasiceventSetEvent(state:peventstate);
 procedure IntbasiceventSetEvent(state:peventstate);
 begin
 begin
   pthread_mutex_lock(@plocaleventstate(state)^.feventsection);
   pthread_mutex_lock(@plocaleventstate(state)^.feventsection);
-  Try
-    plocaleventstate(state)^.Fisset:=true;
-    if not(plocaleventstate(state)^.FManualReset) then
-      pthread_cond_signal(@plocaleventstate(state)^.Fcondvar)
-    else
-      pthread_cond_broadcast(@plocaleventstate(state)^.Fcondvar);
-  finally
-    pthread_mutex_unlock(@plocaleventstate(state)^.feventsection);
-  end;
+  plocaleventstate(state)^.Fisset:=true;
+  if not(plocaleventstate(state)^.FManualReset) then
+    pthread_cond_signal(@plocaleventstate(state)^.Fcondvar)
+  else
+    pthread_cond_broadcast(@plocaleventstate(state)^.Fcondvar);
+  pthread_mutex_unlock(@plocaleventstate(state)^.feventsection);
 end;
 end;
 
 
 function IntbasiceventWaitFor(Timeout : Cardinal;state:peventstate) : longint;
 function IntbasiceventWaitFor(Timeout : Cardinal;state:peventstate) : longint;