This is a struct for storing info about a specific size item in the DynamicPool.
More...
#include <Buffer.hxx>
|
| size_t | size () |
| | Get the size of the bucket.
|
| |
| QMember * | executables () |
| | Pull out any pending Executables.
|
| |
| | Q () |
| | Default Constructor.
|
| |
| | ~Q () |
| | Default destructor.
|
| |
| Atomic * | lock () |
| |
| void | insert (QMember *item, unsigned index=0) |
| | Add an item to the back of the queue.
|
| |
| void | insert_locked (QMember *item, unsigned index=0) |
| | Add an item to the back of the queue.
|
| |
| QMember * | next (unsigned index) |
| | Get an item from the front of the queue.
|
| |
| Result | next () |
| | Get an item from the front of the queue.
|
| |
| Result | next_locked () |
| | Get an item from the front of the queue.
|
| |
| size_t | pending (unsigned index) |
| | Get the number of pending items in the queue.
|
| |
| size_t | pending () |
| | Get the number of pending items in the queue.
|
| |
| bool | empty (unsigned index) |
| | Test if the queue is empty.
|
| |
| bool | empty () |
| | Test if the queue is empty.
|
| |
|
| static Bucket * | init (int s,...) |
| | Allocate a Bucket array off of the heap initialized with sizes.
|
| |
| static void | destroy (Bucket *bucket) |
| | destroy a bucket created with init.
|
| |
|
| size_t | size_ |
| | size of entry
|
| |
| Q | pending_ |
| | list of anyone waiting for an item in the bucket
|
| |
This is a struct for storing info about a specific size item in the DynamicPool.
Definition at line 396 of file Buffer.hxx.
◆ Bucket()
| Bucket::Bucket |
( |
size_t |
size | ) |
|
|
inlineprivate |
◆ ~Bucket()
◆ destroy()
| static void Bucket::destroy |
( |
Bucket * |
bucket | ) |
|
|
inlinestatic |
destroy a bucket created with init.
- Parameters
-
Definition at line 442 of file Buffer.hxx.
◆ executables()
Pull out any pending Executables.
- Returns
- next Qmember pending on an item in the bucket
Definition at line 458 of file Buffer.hxx.
◆ init()
| static Bucket * Bucket::init |
( |
int |
s, |
|
|
|
... |
|
) |
| |
|
inlinestatic |
Allocate a Bucket array off of the heap initialized with sizes.
- Parameters
-
| s | size of first bucket |
| ... | '0' terminated list of additional buckets |
- Returns
- array of allocated buckets.
- Todo:
- (Stuart Baker) fix such that sizes do not need to be in strict ascending order
Definition at line 406 of file Buffer.hxx.
◆ size()
Get the size of the bucket.
- Returns
- size of bucket
Definition at line 450 of file Buffer.hxx.
◆ allocCount_
| size_t Bucket::allocCount_ {0} |
total entries allocated
Definition at line 481 of file Buffer.hxx.
◆ pending_
list of anyone waiting for an item in the bucket
Definition at line 484 of file Buffer.hxx.
◆ size_
The documentation for this class was generated from the following file: