Changeset 2115 for box/trunk/lib/common/EventWatchFilesystemObject.cpp
- Timestamp:
- 28/03/2008 22:18:44 (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
box/trunk/lib/common/EventWatchFilesystemObject.cpp
r1694 r2115 27 27 // 28 28 // Function 29 // Name: EventWatchFilesystemObject::EventWatchFilesystemObject(const char *) 30 // Purpose: Constructor -- opens the file object 31 // Created: 12/3/04 29 // Name: EventWatchFilesystemObject::EventWatchFilesystemObject 30 // (const char *) 31 // Purpose: Constructor -- opens the file object 32 // Created: 12/3/04 32 33 // 33 34 // -------------------------------------------------------------------------- … … 40 41 if(mDescriptor == -1) 41 42 { 42 BOX_ERROR("EventWatchFilesystemObject: " 43 "Failed to open file '" << Filename << "': " << 44 strerror(errno)); 43 BOX_LOG_SYS_ERROR("EventWatchFilesystemObject: " 44 "Failed to open file '" << Filename << "'"); 45 45 THROW_EXCEPTION(CommonException, OSFileOpenError) 46 46 } … … 54 54 // 55 55 // Function 56 // Name: EventWatchFilesystemObject::~EventWatchFilesystemObject()57 // Purpose: Destructor58 // Created: 12/3/0456 // Name: EventWatchFilesystemObject::~EventWatchFilesystemObject() 57 // Purpose: Destructor 58 // Created: 12/3/04 59 59 // 60 60 // -------------------------------------------------------------------------- … … 71 71 // 72 72 // Function 73 // Name: EventWatchFilesystemObject::EventWatchFilesystemObject(const EventWatchFilesystemObject &) 74 // Purpose: Copy constructor 75 // Created: 12/3/04 73 // Name: EventWatchFilesystemObject::EventWatchFilesystemObject 74 // (const EventWatchFilesystemObject &) 75 // Purpose: Copy constructor 76 // Created: 12/3/04 76 77 // 77 78 // -------------------------------------------------------------------------- 78 EventWatchFilesystemObject::EventWatchFilesystemObject(const EventWatchFilesystemObject &rToCopy) 79 EventWatchFilesystemObject::EventWatchFilesystemObject( 80 const EventWatchFilesystemObject &rToCopy) 79 81 : mDescriptor(::dup(rToCopy.mDescriptor)) 80 82 { … … 90 92 // 91 93 // Function 92 // Name: EventWatchFilesystemObject::FillInKEvent(struct kevent &, int)93 // Purpose: For WaitForEvent94 // Created: 12/3/0494 // Name: EventWatchFilesystemObject::FillInKEvent(struct kevent &, int) 95 // Purpose: For WaitForEvent 96 // Created: 12/3/04 95 97 // 96 98 // -------------------------------------------------------------------------- 97 void EventWatchFilesystemObject::FillInKEvent(struct kevent &rEvent, int Flags) const 99 void EventWatchFilesystemObject::FillInKEvent(struct kevent &rEvent, 100 int Flags) const 98 101 { 99 EV_SET(&rEvent, mDescriptor, EVFILT_VNODE, EV_CLEAR, NOTE_DELETE | NOTE_WRITE, 0, (void*)this); 102 EV_SET(&rEvent, mDescriptor, EVFILT_VNODE, EV_CLEAR, 103 NOTE_DELETE | NOTE_WRITE, 0, (void*)this); 100 104 } 101 105 #else 102 void EventWatchFilesystemObject::FillInPoll(int &fd, short &events, int Flags) const 106 void EventWatchFilesystemObject::FillInPoll(int &fd, short &events, 107 int Flags) const 103 108 { 104 109 THROW_EXCEPTION(CommonException, KQueueNotSupportedOnThisPlatform)
Note: See TracChangeset
for help on using the changeset viewer.
