mirror of
https://github.com/sockspls/badfish
synced 2025-04-30 08:43:09 +00:00
Clarify some comments in SMP code
Spotted by Joona. No functional change.
This commit is contained in:
parent
7e3dba4f4c
commit
6ba1d3ead6
2 changed files with 3 additions and 3 deletions
|
@ -1547,8 +1547,7 @@ void Thread::idle_loop() {
|
|||
|
||||
// After releasing the lock we can't access any SplitPoint related data
|
||||
// in a safe way because it could have been released under our feet by
|
||||
// the sp master. Also accessing other Thread objects is unsafe because
|
||||
// if we are exiting there is a chance that they are already freed.
|
||||
// the sp master.
|
||||
sp->mutex.unlock();
|
||||
|
||||
// Try to late join to another split point if none of its slaves has
|
||||
|
|
|
@ -194,7 +194,8 @@ void ThreadPool::init() {
|
|||
}
|
||||
|
||||
|
||||
// exit() cleanly terminates the threads before the program exits
|
||||
// exit() cleanly terminates the threads before the program exits. Cannot be done in
|
||||
// d'tor because we have to terminate the threads before to free ThreadPool object.
|
||||
|
||||
void ThreadPool::exit() {
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue