|
| | MemoryUsage () |
| | Default Constructor.
|
| |
| | MemoryUsage (unsigned long long limit) |
| | Creates an instance of an Usage monitor with a set limit.
|
| |
| virtual | ~MemoryUsage () |
| |
| virtual void | waitForSpace () |
| | Waits forever for more space to be returned to this Usage Manager.
|
| |
| virtual void | waitForSpace (unsigned int timeout) |
| | Waits for more space to be returned to this Usage Manager, times out when the given time span in milliseconds elapses.
|
| |
| virtual void | enqueueUsage (unsigned long long value) |
| | Tries to increase the usage by value amount but blocks if this object is currently full.
|
| |
| virtual void | increaseUsage (unsigned long long value) |
| | Increases the usage by the value amount.
|
| |
| virtual void | decreaseUsage (unsigned long long value) |
| | Decreases the usage by the value amount.
|
| |
| virtual bool | isFull () const |
| | Returns true if this Usage instance is full, i.e.
|
| |
| unsigned long long | getUsage () const |
| | Gets the current usage amount.
|
| |
| void | setUsage (unsigned long long usage) |
| | Sets the current usage amount.
|
| |
| unsigned long long | getLimit () const |
| | Gets the current limit amount.
|
| |
| void | setLimit (unsigned long long limit) |
| | Sets the current limit amount.
|
| |
| virtual | ~Usage () |
| |
| virtual void | waitForSpace ()=0 |
| | Waits forever for more space to be returned to this Usage Manager.
|
| |
| virtual void | waitForSpace (unsigned int timeout)=0 |
| | Waits for more space to be returned to this Usage Manager, times out when the given time span in milliseconds elapses.
|
| |
| virtual void | enqueueUsage (unsigned long long value)=0 |
| | Tries to increase the usage by value amount but blocks if this object is currently full.
|
| |
| virtual void | increaseUsage (unsigned long long value)=0 |
| | Increases the usage by the value amount.
|
| |
| virtual void | decreaseUsage (unsigned long long value)=0 |
| | Decreases the usage by the value amount.
|
| |
| virtual bool | isFull () const =0 |
| | Returns true if this Usage instance is full, i.e.
|
| |