X-Git-Url: https://mop.ddnsfree.com/gitweb/?a=blobdiff_plain;f=web%2Fbriskin5%2FObj%2Fbriskin5.phh;h=94840679fe438ce82e2592f1dc7b025939191d3a;hb=6a7088b090b78123ccfaa3ba00e1ea81647b173c;hp=fffd6921170dae06ce168123cff76ac22002c29f;hpb=8e6645e3502b269d768bbb43e30b70bf96a2cdaf;p=brisk.git diff --git a/web/briskin5/Obj/briskin5.phh b/web/briskin5/Obj/briskin5.phh index fffd692..9484067 100644 --- a/web/briskin5/Obj/briskin5.phh +++ b/web/briskin5/Obj/briskin5.phh @@ -992,7 +992,7 @@ class Bin5 { return ($ret); } - function lock_data($table_idx) + static function lock_data($is_exclusive, $table_idx) { GLOBAL $sess; @@ -1004,7 +1004,7 @@ class Bin5 { return (FALSE); } // WARNING monitor this step - if (($res = @sem_get($tok)) == FALSE) { + if (($res = @sem_get($tok, ($is_exclusive ? 1 : LOCK_SHARE_MAX) )) == FALSE) { return (FALSE); } if (sem_acquire($res)) { @@ -1019,7 +1019,7 @@ class Bin5 { } } - function unlock_data($res_vect) + static function unlock_data($res_vect) { GLOBAL $sess;