예제 #1
0
 /**
  * Release the mutex previously acquired
  *
  */
 function Release()
 {
     global $DBCONN, $TBLPREFIX;
     if (!Mutex::checkDBCONN()) {
         return false;
     }
     $sql = "UPDATE {$TBLPREFIX}mutex SET mx_time=0, mx_thread='0' WHERE mx_name='" . $DBCONN->escapeSimple($this->name) . "' AND mx_thread='" . session_id() . "'";
     $res = dbquery($sql);
     $this->waitCount = 0;
     //		print "releasing mutex ".$this->name;
 }