Posted by Bill Godfrey on 11/02/62 11:26
Hello. I have a database which I have abstracted off with a set of
functions I have written. (So all the correct quoting and unquoting are all
in one place.)
/* Simplified code. */
$tokenCount = getTokenCount($userIdx);
/* Context switch! */
setTokenCount($userIdx, $tokenCount + 1);
But what if another process perfoms a get on the same record between the
get and the set of the first process? What I could do with is a mutex.
Do they please exist for PHP running under Apache?
Bill, lost update.
--
http://billpg.me.uk/ usenet(at)billpg(dot)me(dot)uk
[Back to original message]
|