SbBarrier   (3) manpage
SbBarrier
3
24 Jun 2004
Version 2.3.0
Coin
\"
-*-
nroff
-*-
  • NAME
      SbBarrier -
  • SYNOPSIS



      #include <Inventor/threads/SbBarrier.h>

  • Detailed Description


      The SbBarrier class implements the 'barrier' multi-thread synchronization technique.
      A barrier is a synchronization mechanism that is used for blocking threads as they enter the barrier until a given number of threads are blocked, at which point all the threads are released again.

      "Public Member Functions"
      \fBSbBarrier\fP (unsigned int count)
      \fB~SbBarrier\fP (void)
      int \fBenter\fP (void)
  • Constructor & Destructor Documentation


      "SbBarrier::SbBarrier (unsigned int count) [inline]"

      Constructor. The SbBarrier will be set for count number of threads. "SbBarrier::~SbBarrier (void) [inline]"

      Destructor.
  • Member Function Documentation


      "int SbBarrier::enter (void) [inline]"

      This method blocks the calling thread on this barrier. It returns when the given number of threads have been blocked. 1 is returned if the caller was the last thread to enter the barrier, 0 otherwise.
  • Author


      Generated automatically by Doxygen for Coin from the source code.
Current Users: 30 © 1999-2006 Linux.com.hk PenguinSoft
All trademarks and copyrights on this page are owned by their respective companies. Linux is a trademark of Linus Torvalds.