mirror of
https://github.com/privacore/open-source-search-engine.git
synced 2025-07-09 01:56:07 -04:00
Removed ThreadEntry::m_tid (not used)
Member was never assigned. May be reincarnated sometime in the future where we need to log the pthread_t or the thread Id (as in SYS_gettid).
This commit is contained in:
10
Threads.cpp
10
Threads.cpp
@ -1499,12 +1499,6 @@ bool ThreadQueue::cleanUp ( ThreadEntry *tt , int32_t maxNiceness ) {
|
||||
|
||||
}
|
||||
|
||||
// debug msg
|
||||
if ( g_conf.m_logDebugThread )
|
||||
log(LOG_DEBUG,"thread: joined with pid=%"INT32" pid=%"INT32".",
|
||||
(int32_t)t->m_pid,(int32_t)t->m_pid);
|
||||
|
||||
|
||||
// we may get cleaned up and re-used and our niceness reassignd
|
||||
// right after set m_isDone to true, so save niceness
|
||||
//int32_t niceness = t->m_niceness;
|
||||
@ -1943,9 +1937,9 @@ void ThreadQueue::print ( ) {
|
||||
ThreadEntry *t = &m_entries[i];
|
||||
// print it
|
||||
log(LOG_INIT,"thread: address=%"PTRFMT" "
|
||||
"pid=%u state=%"PTRFMT" "
|
||||
"state=%"PTRFMT" "
|
||||
"occ=%i done=%i lnch=%i",
|
||||
(PTRTYPE)t , t->m_pid ,
|
||||
(PTRTYPE)t,
|
||||
(PTRTYPE)t->m_state , t->m_isOccupied , t->m_isDone ,
|
||||
t->m_isLaunched );
|
||||
}
|
||||
|
@ -39,7 +39,6 @@ public:
|
||||
void *m_state ;
|
||||
// returns a void * :
|
||||
void *(* m_startRoutine)(void *,class ThreadEntry *) ;
|
||||
pid_t m_pid ; // process id for waitpid()
|
||||
bool m_isOccupied ; // is thread waiting/going?
|
||||
bool m_isLaunched ; // has it been launched?
|
||||
bool m_isDone ; // is it done running?
|
||||
|
Reference in New Issue
Block a user