summaryrefslogtreecommitdiffstats
path: root/Under-Testing/Website/mutexFunctions.php
diff options
context:
space:
mode:
authorTriatmoko2011-11-18 13:23:49 +0100
committerTriatmoko2011-11-18 13:23:49 +0100
commitb99193ba68f947802245a288940e54904ecbee61 (patch)
treedd28de19b823a1b18722c98bebec81c3a8d8e6a1 /Under-Testing/Website/mutexFunctions.php
parentnagios function fully working (diff)
downloadgsm-selftest-b99193ba68f947802245a288940e54904ecbee61.tar.gz
gsm-selftest-b99193ba68f947802245a288940e54904ecbee61.tar.xz
gsm-selftest-b99193ba68f947802245a288940e54904ecbee61.zip
final version
Diffstat (limited to 'Under-Testing/Website/mutexFunctions.php')
-rw-r--r--Under-Testing/Website/mutexFunctions.php36
1 files changed, 0 insertions, 36 deletions
diff --git a/Under-Testing/Website/mutexFunctions.php b/Under-Testing/Website/mutexFunctions.php
deleted file mode 100644
index af45610..0000000
--- a/Under-Testing/Website/mutexFunctions.php
+++ /dev/null
@@ -1,36 +0,0 @@
-<?
-//Mutex functions
-function Lock($lockName,$seconds)
-{
- $sql = "SELECT GET_LOCK('$lockName', $seconds);";
- $res = mysql_query($sql);
- if (!$res)
- {
- die('Could not query:' . mysql_error());
- }
- return mysql_result($res,0);
-}
-
-function IsLocked($lockName)
-{
- $sql = "SELECT IS_FREE_LOCK('$lockName');";
- $res = mysql_query($sql);
- if (!$res)
- {
- die('Could not query:' . mysql_error());
- }
- return mysql_result($res,0);
-}
-
-function ReleaseLock($lockName)
-{
- $sql = "SELECT RELEASE_LOCK('$lockName');";
- $res = mysql_query($sql);
- if (!$res)
- {
- die('Could not query:' . mysql_error());
- }
- return mysql_result($res,0);
-}
-//End of mutex functions
-?>