[+] Enforce C++ assumptions
This commit is contained in:
parent
1a18847363
commit
5347fdbba1
@ -367,7 +367,7 @@ namespace Aurora::Async
|
|||||||
|
|
||||||
void AsyncApp::Start()
|
void AsyncApp::Start()
|
||||||
{
|
{
|
||||||
SysAssert(Spawn({0, 0}));
|
SysAssert(Spawn({0, 1}));
|
||||||
StartSched();
|
StartSched();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -471,6 +471,12 @@ namespace Aurora::Async
|
|||||||
{
|
{
|
||||||
AU_LOCK_GUARD(rwlock_->AsWritable());
|
AU_LOCK_GUARD(rwlock_->AsWritable());
|
||||||
|
|
||||||
|
if (workerId.second == 0)
|
||||||
|
{
|
||||||
|
LogWarn("WorkerIds must not start from zero to preserve std::optiona nullability");
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
AuSPtr<GroupState> group;
|
AuSPtr<GroupState> group;
|
||||||
|
|
||||||
// Try fetch or allocate group
|
// Try fetch or allocate group
|
||||||
|
Loading…
Reference in New Issue
Block a user