»

LJ::may_lock

LJ::may_lock — see if we COULD get a mysql lock on a given key/dbrole combination, but don't actually get it.

Use

LJ::may_lock(db, dbrole);

Arguments

  • db. 

  • dbrole. the role this lock should be gotten on, either 'global' or 'user'

Source:

cgi-bin/ljlib.pl

Returns:

undef if called improperly, true on success, die() on failure