1
0
forked from Alepha/Alepha

Report a handle for ThreadGroup insertions

This commit is contained in:
2024-08-08 04:16:02 -04:00
parent e232388bdc
commit 9eaf05c36c

View File

@ -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