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
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.
a
Sorry for the bad formatting...
Anyway, I did figure out the problem: php creates/expects each system v
semaphore to be a semaphore group of 3. So, not only is that weird, it
really should be documented.
Jeremy
-Original Message-
From: Jeremy Greene [mailto:jer...@zeevee.com]
Sent
Hi,
I am trying to do a sem_get on a semaphore that has already been created
by
a c++ program. But I'm getting this warning:
PHP Warning: sem_get(): failed for key 0x31006dc2: Invalid argument in
/home/jgreene/views/latest/lcast/apps/webapp/webApp.php on line 11
Here is the line 11:
I have had really bad luck with signals. They can be “lost” in more than one
way.
I thought this was the far more reliable and correct way… at least from that
point of view.
Jeremy
From: Nathan Nobbe [mailto:quickshif...@gmail.com]
Sent: Monday, May 02, 2011 5:01 PM
To: Jeremy Greene
Hi,
I am getting a warning when calling sem_release() before (the same php
script) calls sem_acquire(). I am doing this because it's a "signal" to
another process. The other process (which happens to be C program) has
done, or will do, a semop() to acquire the semaphore/signal. The actual
data
6 matches
Mail list logo