Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

ost_runlist(3) [debian man page]

ost::Runlist(3) 					     Library Functions Manual						   ost::Runlist(3)

NAME
ost::Runlist - A runlist is used to restrict concurrent exection to a limited set of concurrent sessions, much like a semaphore. SYNOPSIS
#include <misc.h> Inherits ost::Mutex. Public Member Functions 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. Protected Member Functions void check (void) Protected Attributes unsigned limit unsigned used Additional Inherited Members Detailed Description 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: David Sugar dyfet@ostel.com list of runable objects. Constructor &; Destructor Documentation ost::Runlist::Runlist (unsignedcount = 1) Create a new runlist with a specified limit. Parameters: count limit before wait queuing. Member Function Documentation bool ost::Runlist::add (Runable *run) 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: true if immediately ready to run Parameters: run pointer to runable object. void ost::Runlist::check (void) [protected] void ost::Runlist::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. Parameters: run pointer to runable object. void ost::Runlist::set (unsignedlimit) Set the limit. Parameters: limit to use. Member Data Documentation unsigned ost::Runlist::limit [protected] unsigned ost::Runlist::used [protected] Author Generated automatically by Doxygen for GNU CommonC++ from the source code. GNU CommonC++ Sat Jun 23 2012 ost::Runlist(3)

Check Out this Related Man Page

ost::Runable(3) 					     Library Functions Manual						   ost::Runable(3)

NAME
ost::Runable - A container for objects that can be queued against a runlist. SYNOPSIS
#include <misc.h> Public Member Functions bool starting (Runlist *list) Start the object against a run list. void stoping (void) Stop the object, called when stopping or ready completes. Protected Member Functions Runable () virtual ~Runable () virtual void ready (void)=0 Method handler that is invoked when a wait-listed object becomes ready to run. Friends class Runlist Detailed Description A container for objects that can be queued against a runlist. Author: David Sugar dyfet@ostel.com runable object with notify when ready. Constructor &; Destructor Documentation ost::Runable::Runable () [protected] virtual ost::Runable::~Runable () [protected], [virtual] Member Function Documentation virtual void ost::Runable::ready (void) [protected], [pure virtual] Method handler that is invoked when a wait-listed object becomes ready to run. bool ost::Runable::starting (Runlist *list) Start the object against a run list. Returns: true if immediately available to run. Parameters: list to start under. void ost::Runable::stoping (void) Stop the object, called when stopping or ready completes. May also be used for a task that has not yet started to remove it from the wait list. Friends And Related Function Documentation friend class Runlist [friend] Author Generated automatically by Doxygen for GNU CommonC++ from the source code. GNU CommonC++ Sat Jun 23 2012 ost::Runable(3)
Man Page