forked from Alepha/Alepha
Report a handle for ThreadGroup
insertions
This commit is contained in:
@ -20,12 +20,13 @@ namespace Alepha::Hydrogen ::detail:: ThreadGroup_m
|
|||||||
|
|
||||||
public:
|
public:
|
||||||
template< typename Function >
|
template< typename Function >
|
||||||
void
|
Thread *
|
||||||
addThread( Function function )
|
addThread( Function function )
|
||||||
{
|
{
|
||||||
// TODO: Exception handler wrapper
|
// TODO: Exception handler wrapper
|
||||||
// TODO: lockstep start wrapper?
|
// TODO: lockstep start wrapper?
|
||||||
threads.push_back( std::make_unique< Thread >( std::forward< Function >( function ) ) );
|
threads.push_back( std::make_unique< Thread >( std::forward< Function >( function ) ) );
|
||||||
|
return threads.back().get();
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
Reference in New Issue
Block a user