Ticket #3172: registrarfix.patch

File registrarfix.patch, 918 bytes (added by anevilyak, 15 years ago)
  • mime/RegistrarThreadManager.cpp

     
    8787RegistrarThreadManager::LaunchThread(RegistrarThread *thread)
    8888{
    8989    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;
    9290
    9391    if (!err) {
    9492        fThreads.push_back(thread);
  • mime/RegistrarThreadManager.h

     
    3232    status_t KillThreads();
    3333   
    3434    uint ThreadCount() const;
    35    
    36     static const uint kThreadLimit = 12;
     35
    3736private:
    3837
    3938    std::list<RegistrarThread*>::iterator& RemoveThread(std::list<RegistrarThread*>::iterator &i);