logd: clarify release_Locked() for static analyzer
am: c348416198
* commit 'c3484161980cdea915c893a233f54b14a75d151f':
logd: clarify release_Locked() for static analyzer
This commit is contained in:
commit
13b3d68a61
|
@ -90,7 +90,7 @@ void LogTimeEntry::threadStop(void *obj) {
|
|||
while(it != times.end()) {
|
||||
if (*it == me) {
|
||||
times.erase(it);
|
||||
me->release_Locked();
|
||||
me->release_nodelete_Locked();
|
||||
break;
|
||||
}
|
||||
it++;
|
||||
|
|
|
@ -75,7 +75,13 @@ public:
|
|||
void triggerSkip_Locked(log_id_t id, unsigned int skip) { skipAhead[id] = skip; }
|
||||
void cleanSkip_Locked(void);
|
||||
|
||||
// Called after LogTimeEntry removed from list, lock implicitly held
|
||||
// These called after LogTimeEntry removed from list, lock implicitly held
|
||||
void release_nodelete_Locked(void) {
|
||||
mRelease = true;
|
||||
pthread_cond_signal(&threadTriggeredCondition);
|
||||
// assumes caller code path will call decRef_Locked()
|
||||
}
|
||||
|
||||
void release_Locked(void) {
|
||||
mRelease = true;
|
||||
pthread_cond_signal(&threadTriggeredCondition);
|
||||
|
|
Loading…
Reference in New Issue