Changeset 1ecd26f in nscp for service/channels.hpp
- Timestamp:
- 01/03/11 08:21:00 (2 years ago)
- Branches:
- master, 0.4.0, 0.4.1, 0.4.2
- Children:
- e6792f3
- Parents:
- f7663c9
- File:
-
- 1 edited
-
service/channels.hpp (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
service/channels.hpp
racf0660 r1ecd26f 53 53 boost::unique_lock<boost::shared_mutex> writeLock(mutex_, boost::get_system_time() + boost::posix_time::seconds(30)); 54 54 if (!writeLock.owns_lock()) { 55 log_error(__FILE W__, __LINE__, _T("Failed to get mutex: channels::remove_all"));55 log_error(__FILE__, __LINE__, _T("Failed to get mutex: channels::remove_all")); 56 56 return; 57 57 } … … 63 63 boost::unique_lock<boost::shared_mutex> writeLock(mutex_, boost::get_system_time() + boost::posix_time::seconds(10)); 64 64 if (!writeLock.owns_lock()) { 65 log_error(__FILE W__, __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)); 66 66 return; 67 67 } … … 83 83 boost::unique_lock<boost::shared_mutex> writeLock(mutex_, boost::get_system_time() + boost::posix_time::seconds(10)); 84 84 if (!writeLock.owns_lock()) { 85 log_error(__FILE W__, __LINE__, _T("Failed to get mutex: ") + channel);85 log_error(__FILE__, __LINE__, _T("Failed to get mutex: ") + channel); 86 86 return; 87 87 } … … 96 96 boost::shared_lock<boost::shared_mutex> readLock(mutex_, boost::get_system_time() + boost::posix_time::seconds(5)); 97 97 if (!readLock.owns_lock()) { 98 log_error(__FILE W__, __LINE__, _T("Failed to get mutex"));98 log_error(__FILE__, __LINE__, _T("Failed to get mutex")); 99 99 return lst; 100 100 } … … 109 109 boost::shared_lock<boost::shared_mutex> readLock(mutex_, boost::get_system_time() + boost::posix_time::seconds(5)); 110 110 if (!readLock.owns_lock()) { 111 log_error(__FILE W__, __LINE__, _T("Failed to get mutex: ") + channel);111 log_error(__FILE__, __LINE__, _T("Failed to get mutex: ") + channel); 112 112 throw channel_exception("Failed to get mutex (channel::get)"); 113 113 } … … 136 136 return boost::algorithm::to_lower_copy(key); 137 137 } 138 void log_error(std:: wstring file, int line, std::wstring error) {138 void log_error(std::string file, int line, std::wstring error) { 139 139 if (logger_ != NULL) 140 140 logger_->nsclient_log_error(file, line, error);
Note: See TracChangeset
for help on using the changeset viewer.








