446 |
NotifyMutex.Unlock(); |
NotifyMutex.Unlock(); |
447 |
} |
} |
448 |
|
|
449 |
|
void LSCPServer::LockRTNotify() { |
450 |
|
RTNotifyMutex.Lock(); |
451 |
|
} |
452 |
|
|
453 |
|
void LSCPServer::UnlockRTNotify() { |
454 |
|
RTNotifyMutex.Unlock(); |
455 |
|
} |
456 |
|
|
457 |
int LSCPServer::EventSubscribers( std::list<LSCPEvent::event_t> events ) { |
int LSCPServer::EventSubscribers( std::list<LSCPEvent::event_t> events ) { |
458 |
int subs = 0; |
int subs = 0; |
459 |
SubscriptionMutex.Lock(); |
SubscriptionMutex.Lock(); |
2553 |
if ( win32FileAttributeData.dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY ) { |
if ( win32FileAttributeData.dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY ) { |
2554 |
throw Exception("Directory is specified"); |
throw Exception("Directory is specified"); |
2555 |
} |
} |
2556 |
#else |
#else |
2557 |
struct stat statBuf; |
struct stat statBuf; |
2558 |
int res = stat(Filename.c_str(), &statBuf); |
int res = stat(Filename.c_str(), &statBuf); |
2559 |
if (res) { |
if (res) { |