A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://www.ncbi.nlm.nih.gov/IEB/ToolBox/CPP_DOC/doxyhtml/classCPSG__EventLoop.html below:

NCBI C++ ToolKit: CPSG_EventLoop Class Reference

A class derived from the queue class that additionally allows to run event loop. More...

A class derived from the queue class that additionally allows to run event loop.

Call SendRequest() (possibly from other threads) to add requests to the queue. Call RunOnce() to run the event loop once, use IsEmpty() to check if all processing is complete. Or, call Run() to run the event loop until all processing is complete.

NOTE: Requests can be added to the queue at any time, including in parallel with calling Run() and RunOnce() methods of the event loop. However, do remember to call Stop() once all required requests have been added to the queue as this will help the event loop to stop promptly, as soon as all submitted requests have been processed.

Derived (the event loop) part of the instance is not MT-safe, one event loop cannot be run by multiple threads. Base class methods are MT-safe.

The queue base can be used by more than one thread, usually to add requests and stop the queue after. If needed, it can also be used to wait for events and to manually retrieve replies. Manually retrieved replies will not be processed by the event loop though.

Results for the requests which were pushed into a given instance will be processed using this (and only this) instance regardless of which threads were used to push the requests.

If more than one request was pushed into the instance, then the replies to all of the requests may come, in any order.

Definition at line 1365 of file psg_client.hpp.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4