Changeset 1ecd26f in nscp for service/channels.hpp


Ignore:
Timestamp:
01/03/11 08:21:00 (2 years ago)
Author:
Michael Medin <michael@…>
Branches:
master, 0.4.0, 0.4.1, 0.4.2
Children:
e6792f3
Parents:
f7663c9
Message:

syncronized streams between 0.4.x and 0.3.x as well as improed the CMAke build *alot*

File:
1 edited

Legend:

Unmodified
Added
Removed
  • service/channels.hpp

    racf0660 r1ecd26f  
    5353      boost::unique_lock<boost::shared_mutex> writeLock(mutex_, boost::get_system_time() + boost::posix_time::seconds(30)); 
    5454      if (!writeLock.owns_lock()) { 
    55         log_error(__FILEW__, __LINE__, _T("Failed to get mutex: channels::remove_all")); 
     55        log_error(__FILE__, __LINE__, _T("Failed to get mutex: channels::remove_all")); 
    5656        return; 
    5757      } 
     
    6363      boost::unique_lock<boost::shared_mutex> writeLock(mutex_, boost::get_system_time() + boost::posix_time::seconds(10)); 
    6464      if (!writeLock.owns_lock()) { 
    65         log_error(__FILEW__, __LINE__, _T("Failed to get mutex in remove_plugin for plugin id: ") + ::to_wstring(id)); 
     65        log_error(__FILE__, __LINE__, _T("Failed to get mutex in remove_plugin for plugin id: ") + ::to_wstring(id)); 
    6666        return; 
    6767      } 
     
    8383      boost::unique_lock<boost::shared_mutex> writeLock(mutex_, boost::get_system_time() + boost::posix_time::seconds(10)); 
    8484      if (!writeLock.owns_lock()) { 
    85         log_error(__FILEW__, __LINE__, _T("Failed to get mutex: ") + channel); 
     85        log_error(__FILE__, __LINE__, _T("Failed to get mutex: ") + channel); 
    8686        return; 
    8787      } 
     
    9696      boost::shared_lock<boost::shared_mutex> readLock(mutex_, boost::get_system_time() + boost::posix_time::seconds(5)); 
    9797      if (!readLock.owns_lock()) { 
    98         log_error(__FILEW__, __LINE__, _T("Failed to get mutex")); 
     98        log_error(__FILE__, __LINE__, _T("Failed to get mutex")); 
    9999        return lst; 
    100100      } 
     
    109109      boost::shared_lock<boost::shared_mutex> readLock(mutex_, boost::get_system_time() + boost::posix_time::seconds(5)); 
    110110      if (!readLock.owns_lock()) { 
    111         log_error(__FILEW__, __LINE__, _T("Failed to get mutex: ") + channel); 
     111        log_error(__FILE__, __LINE__, _T("Failed to get mutex: ") + channel); 
    112112        throw channel_exception("Failed to get mutex (channel::get)"); 
    113113      } 
     
    136136      return boost::algorithm::to_lower_copy(key); 
    137137    } 
    138     void log_error(std::wstring file, int line, std::wstring error) { 
     138    void log_error(std::string file, int line, std::wstring error) { 
    139139      if (logger_ != NULL) 
    140140        logger_->nsclient_log_error(file, line, error); 
Note: See TracChangeset for help on using the changeset viewer.