public function add(ApnsPHP_Message $message)
	{
		static $n = 0;
		if ($n >= $this->_nProcesses) {
			$n = 0;
		}
		sem_acquire($this->_hSem);
		$aQueue = $this->_getQueue(self::SHM_MESSAGES_QUEUE_KEY_START, $n);
		$aQueue[] = $message;
		$this->_setQueue(self::SHM_MESSAGES_QUEUE_KEY_START, $n, $aQueue);
		sem_release($this->_hSem);
		$n++;
	}
public function add(ApnsPHP_Message $message)
	{
		static $n = 0;
		if ($n >= $this->_nProcesses) {
			$n = 0;
		}
		sem_acquire($this->_hSem);
		$aQueue = $this->_getQueue(self::SHM_MESSAGES_QUEUE_KEY_START, $n);
		$aQueue[] = $message;
		$this->_setQueue(self::SHM_MESSAGES_QUEUE_KEY_START, $n, $aQueue);
		sem_release($this->_hSem);
		$n++;
	}
public function add ( ApnsPHP_Message $ message ) { static $ n = 0 ; if ( $ n >= $ this -> _nProcesses ) { $ n = 0 ; } sem_acquire ( $ this -> _hSem ) ; $ aQueue = $ this -> _getQueue ( self :: SHM_MESSAGES_QUEUE_KEY_START , $ n ) ; $ aQueue [ ] = $ message ; $ this -> _setQueue ( self :: SHM_MESSAGES_QUEUE_KEY_START , $ n , $ aQueue ) ; sem_release ( $ this -> _hSem ) ; $ n ++ ; }
Adds a message to the inter-process message queue.

Messages are added to the queues in a round-robin fashion starting from the
first process to the last.

@param  $message @type ApnsPHP_Message The message.
Adds a message to the inter - process message queue .