atomaticity/thread safeness of apc shared memory functions + mutexes

From: Date: Wed, 24 Dec 2008 22:13:12 +0000
Subject: atomaticity/thread safeness of apc shared memory functions + mutexes
Groups: php.apc.dev 
Request: Send a blank email to php-apc-dev+get-172@lists.php.net to get a copy of this message
Couldn't find it in the docs, so I hope you know it: Are the userland apc cache functions (apc_add, apc_fetch, apc_delete etc) *thread-safe/atomic*? Also: I need to ensure that conncurrent access to shared memory doesn't get me in race conditions. Wouldn't it be nice if apc could offer mutex functions and the like? There is a semaphore extension for php, but it is *nix-only according to the docs. The need for synchronization mechanisms arise almost allways when using shared memory.

« previous php.apc.dev (#172) next »