Ticket #3172: registrarfix.patch
File registrarfix.patch, 918 bytes (added by , 16 years ago) |
---|
-
mime/RegistrarThreadManager.cpp
87 87 RegistrarThreadManager::LaunchThread(RegistrarThread *thread) 88 88 { 89 89 status_t err = thread ? B_OK : B_BAD_VALUE; 90 if (!err)91 err = fThreadCount < kThreadLimit ? (status_t)B_OK : (status_t)B_NO_MORE_THREADS;92 90 93 91 if (!err) { 94 92 fThreads.push_back(thread); -
mime/RegistrarThreadManager.h
32 32 status_t KillThreads(); 33 33 34 34 uint ThreadCount() const; 35 36 static const uint kThreadLimit = 12; 35 37 36 private: 38 37 39 38 std::list<RegistrarThread*>::iterator& RemoveThread(std::list<RegistrarThread*>::iterator &i);