pike.git/
src/
modules/
FSEvents/
fsevents.cmod
Branch:
Tag:
Non-build tags
All tags
No tags
2012-07-11
2012-07-11 07:10:19 by Bill Welliver <bill@welliver.org>
f2bcbd45a538a1f60a7690bf6715a4545c8c8b38 (
23
lines) (+
12
/-
11
)
[
Show
|
Annotate
]
Branch:
7.9
System.FSEvents: Some minor CMOD reorganization and a Blocking example.
244:
if(THIS->isRunning) {
-
Pike_error("monitor is already running.\n");
+
Pike_error("
EventStream:
monitor is already running.\n");
}
-
+
if(!THIS->_paths)
+
Pike_error("EventStream: no paths.\n");
+
+
if(!THIS->_sinceWhen)
+
Pike_error("EventStream: no startdate.\n");
+
+
if(!THIS->_latency)
+
Pike_error("EventStream: no latency.\n");
+
if(CFArrayGetCount(THIS->_paths)) { THIS->runLoop = CFRunLoopGetCurrent();
258:
context.release = NULL; context.copyDescription = NULL;
-
if(!THIS->_paths)
-
Pike_error("no paths.\n");
-
-
if(!THIS->_sinceWhen)
-
Pike_error("no startdate.\n");
-
-
if(!THIS->_latency)
-
Pike_error("no latency.\n");
-
+
THIS->stream = FSEventStreamCreate(kCFAllocatorDefault, &event_callback, &context,
283:
} else {
-
Pike_error("No paths registered for monitoring.\n");
+
Pike_error("
EventStream:
No paths registered for monitoring.\n");
} }