Move notification out of block locking associated mutex in Gravity.cpp
I don't know how it ended up inside, I wanted it outside. For the record, signalling the CV while the associated mutex is locked is a pessimisation, it just yields predictable scheduling.
This commit is contained in:
parent
5810a19dbc
commit
e1d32c9352
@ -125,11 +125,11 @@ void Gravity::gravity_update_async()
|
||||
signal_grav = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (signal_grav)
|
||||
{
|
||||
gravcv.notify_one();
|
||||
}
|
||||
if (signal_grav)
|
||||
{
|
||||
gravcv.notify_one();
|
||||
}
|
||||
//Apply the gravity mask
|
||||
membwand(gravy, gravmask, (XRES/CELL)*(YRES/CELL)*sizeof(float), (XRES/CELL)*(YRES/CELL)*sizeof(unsigned));
|
||||
|
Reference in New Issue
Block a user