PPL Logo

CkSema Class Reference
[CkFutures]

Collaboration diagram for CkSema:

Collaboration graph
[legend]

Public Member Functions

void * wait (void)
void waitN (int n, void *marray[])
void signal (void *msg)

Private Attributes

CkQ< void * > msgs
CkQ< CthThreadwaiters

Detailed Description

Definition at line 37 of file ckfutures.C.


Member Function Documentation

void* CkSema::wait ( void   )  [inline]

Definition at line 42 of file ckfutures.C.

References CthSelf(), CthSuspend(), CkQ< T >::deq(), msgs, and waiters.

void CkSema::waitN ( int  n,
void *  marray[] 
) [inline]

Definition at line 51 of file ckfutures.C.

References CthSelf(), CthSuspend(), CkQ< T >::deq(), CkQ< T >::length(), msgs, and waiters.

void CkSema::signal ( void *  msg  )  [inline]

Definition at line 63 of file ckfutures.C.

References CthAwaken(), CkQ< T >::enq(), msgs, and waiters.


Field Documentation

CkQ<void*> CkSema::msgs [private]

Definition at line 39 of file ckfutures.C.

Referenced by signal(), wait(), and waitN().

Definition at line 40 of file ckfutures.C.

Referenced by signal(), wait(), and waitN().


The documentation for this class was generated from the following file:

Generated on Fri May 25 08:02:23 2012 for Charm++ by  doxygen 1.5.5