Re: Semaphores without sysvmsg?

From: Date: Mon, 18 Feb 2008 17:43:26 +0000
Subject: Re: Semaphores without sysvmsg?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-269507@lists.php.net to get a copy of this message
On Fri, February 15, 2008 6:42 pm, Michael McGlothlin wrote: > Does anyone have a good method of supporting semaphores when PHP's > System V IPC functions can't be enabled? I'm trying to implement > locking > for using shmop (actually modifying someone elses code) and it > requires > sysvmsg but my shared host doesn't have this enabled. mkdir is atomic, so you should be able to use that to create a semaphore/lock Just in case something gets wedged, you might check the http://php.net/filemtime of the dir, and ignore anything super stale. -- Some people have a "gift" link here. Know what I want? I want you to buy a CD from some indie artist. http://cdbaby.com/from/lynch Yeah, I get a buck. So?

« previous php.general (#269507) next »