fn end_thread(records: &mut MutexGuard<GroupRecords>, shutdown_wakeup: &Condvar) {
    records.thread_count -= 1;
    if records.shutting_down && records.thread_count == 0 {
        shutdown_wakeup.notify_all();
    }
}
/// Performs clean-up actions when a thread exits.
Performs clean-up actions when a thread exits.
Performs clean - up actions when a thread exits .
fn end_thread(records: &mut MutexGuard<GroupRecords>, shutdown_wakeup: &Condvar) {
    records.thread_count -= 1;
    if records.shutting_down && records.thread_count == 0 {
        shutdown_wakeup.notify_all();
    }
}
fn end_thread ( records : & mut MutexGuard < GroupRecords > , shutdown_wakeup : & Condvar ) { records . thread_count -= 1 ; if records . shutting_down && records . thread_count == 0 { shutdown_wakeup . notify_all ( ) ; } }
Performs clean-up actions when a thread exits.
Performs clean - up actions when a thread exits .
records
&mut MutexGuard<GroupRecords>
shutdown_wakeup
&Condvar
records
&mut MutexGuard<GroupRecords>
shutdown_wakeup
&Condvar