blob: 812ddaee44cb8a17e00631dd19e2e5d8576caa76 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
#include <efsw/WatcherInotify.hpp>
namespace efsw {
WatcherInotify::WatcherInotify() : Watcher(), Parent( NULL ) {}
bool WatcherInotify::inParentTree( WatcherInotify* parent ) {
WatcherInotify* tNext = Parent;
while ( NULL != tNext ) {
if ( tNext == parent ) {
return true;
}
tNext = tNext->Parent;
}
return false;
}
} // namespace efsw
|