That will call to the following code:

  struct sembuf operations[1];

  operations[0].sem_num = this->clientId;
  operations[0].sem_op = -1;
  operations[0].sem_flg = SEM_UNDO;

  if (semop(this->semId, operations, 1) < 0)
  {
    std::ostringstream stream;
    stream << "error on semaphore wait [" << strerror(errno) << "]";
    throw(stream.str());
  }



So it will not return anything.  Just block waiting for the semaphore.
If some error happened it will throw an exception.



On Dec 21, 2007 7:03 PM, Willi Richert <w.richert@gmx.net> wrote:
Hi,

In class Client of gazebo.h (svn) we have a small error: Shall Wait return
something or not?

 /// \brief Wait for new data to be posted (blocking mode).
 /// \returns Returns 0 on success, -1 on error.
 public: void Wait();

Merry christmas,
wr

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Playerstage-gazebo mailing list
Playerstage-gazebo@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/playerstage-gazebo



--
Jordi Polo Carres
Natural language processing laboratory
NAIST
http://www.bahasara.org