[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
Re: [tor-bugs] #31735 [Core Tor/Tor]: Exit and join all threads, before destroying any mutexes in the main thread
#31735: Exit and join all threads, before destroying any mutexes in the main thread
--------------------------+----------------------------------
Reporter: teor | Owner: (none)
Type: defect | Status: new
Priority: Medium | Milestone: Tor: unspecified
Component: Core Tor/Tor | Version:
Severity: Normal | Resolution:
Keywords: diagnostics | Actual Points:
Parent ID: | Points:
Reviewer: | Sponsor:
--------------------------+----------------------------------
Comment (by nickm):
For example, we could have:
{{{
typedef struct static_mutex_t {
pthread_mutex_t *m;
bool initialized;
};
}}}
But when I look at this, I'm not sure whether checking `initialized` is
actually any better than just checking whether the mutex itself is NULL.
--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/31735#comment:7>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online
_______________________________________________
tor-bugs mailing list
tor-bugs@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs