new_thread_executor |
The os_new_thread_executor
class implements the separate thread execution concurrency strategy. The execute()
member function runs the void* run() method of
the handler argument in a new 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_new_thread_executor
void* run()
method of handler in a new thread of control. The
calling thread returns immediately after creating a new detached thread that
will execute the run() method on handler
.Copyright©1994-2026 Recursion
Software LLC
All Rights Reserved - For use by licensed users only.