|
Discrete Dipole Approximation Project
1.0
Plugin based Discrete Dipole Approximation (DDA) software package.
|
Note use of locks will result in less efficent code.
#include "thread.h"
Public Member Functions | |
| Queue (size_t nSize) | |
| Constructor. More... | |
| bool | Pop (T &value) |
| Pop a value off of the queue. More... | |
| bool | Push (T &value) |
| Push a value on to the queue. More... | |
|
inline |
Constructs a new Queue object able to hold up to nSize values.
| nSize | Size of queue, number of items it can hold. |
|
inline |
Can't be safely call from multiple threads if the Queue isn't QUEUE_READLOCK or QUEUE_ALLLOCK.
true on success, false if queue empty. | [out] | value | value poped off of the queue |
|
inline |
Can't be safely call from multiple threads if the Queue isn't QUEUE_WRITELOCK or QUEUE_ALLLOCK.
true on success, false if queue full. | [in] | value | value to push on to the queue |
1.8.5
|
Project Web Hosted by