hesitant to put much code in an interrupt handler -- I
have always thought that has issues too.
Jeremy
-Original Message-
From: Rasmus Lerdorf [mailto:ras...@lerdorf.com]
Sent: Sunday, May 08, 2011 11:38 AM
To: Jeremy Greene
Cc: php-general@lists.php.net
Subject: Re: [PHP] semaphores are brok
On Fri, May 6, 2011 at 12:57 PM, Jeremy Greene wrote:
> Then I find out that sem_acquire() actually returns **OK** when the
> underlying semop call gets an EINTR!!! Holy cow. How can a "php system"
> call loose an error?! That's just crazy.
Generally you don't care about an EINTR on a semop()
Ok, I tried to use semaphores between php and C++. Where the php script
was the client and the C++ app was a server. Client only acquired sems,
server only released.
This cannot be done with php semaphores. Got around the first two
problems:
1) Php semaphore is actually 3 sysV sems
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
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.
Thanks,
Michael McGlothlin
S
I know there is no support for semaphores in Windows.
But does the Windows and Mac implement semaphores ? If they don't what is
used instead ?
Can PHP use this functionality on these OS like semaphores on *NIX ?
Cristiano Duarte
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe,
6 matches
Mail list logo