ost::Runlist(3) | Library Functions Manual | ost::Runlist(3) |
ost::Runlist - A runlist is used to restrict concurrent exection to a limited set of concurrent sessions, much like a semaphore.
#include <misc.h>
Inherits ost::Mutex.
Runlist (unsigned count=1)
Create a new runlist with a specified limit. bool add (Runable
*run)
Add a runable object to this runlist. void del (Runable *run)
Remove a runable object from the wait list or notify when it is done running
so that the used count can be decremented. void set (unsigned
limit)
Set the limit.
void check (void)
unsigned limit
unsigned used
A runlist is used to restrict concurrent exection to a limited set of concurrent sessions, much like a semaphore.
However, the runlist differs in that it notifies objects when they become ready to run, rather than requiring them to wait and 'block' for the semaphore count to become low enough to continue.
Author:
Create a new runlist with a specified limit.
Parameters:
Add a runable object to this runlist. If the number of entries running is below the limit, then add returns true otherwise the entry is added to the list.
Returns:
Parameters:
Remove a runable object from the wait list or notify when it is done running so that the used count can be decremented.
Parameters:
Set the limit.
Parameters:
Generated automatically by Doxygen for GNU CommonC++ from the source code.
Wed Oct 31 2018 | GNU CommonC++ |