same_thread_executor |
The os_same_thread_executor
class implements the same thread execution concurrency strategy. The execute()
member function runs the void* run() method of
the handler argument in the same thread of control. This class can be used to
execute handlers in the os_tcp_acceptor and os_tcp_connector
classes.
Use of member template feature in the execute method gives the flexibility of not having the handler classes to inherit from a specific runnable interface class Therefore, the compiler must be able to support member templates and OS_ENABLE_MEMBER_TEMPLATE_FEATURES must be defined to use this class.
Framework<ToolKit>
#include <ospace/framework/executor.h>
class os_same_thread_executor
void* run()
method of handler in the same thread of control.
The calling thread blocks until the run()
method finishes.Copyright©1994-2026 Recursion
Software LLC
All Rights Reserved - For use by licensed users only.