Home | History | Annotate | Download | only in mac

Lines Matching defs:eventSource

60 class WorkQueue::EventSource {
62 EventSource(MachPortEventType eventType, dispatch_source_t dispatchSource, PassOwnPtr<WorkItem> workItem)
73 EventSource* eventSource = static_cast<EventSource*>(source);
75 eventSource->m_workItem->execute();
80 EventSource* eventSource = static_cast<EventSource*>(source);
82 mach_port_t machPort = dispatch_source_get_handle(eventSource->m_dispatchSource);
84 switch (eventSource->m_eventType) {
98 EventSource* eventSource = static_cast<EventSource*>(source);
100 delete eventSource;
126 EventSource* eventSource = new EventSource(eventType, dispatchSource, workItem);
127 dispatch_set_context(dispatchSource, eventSource);
129 dispatch_source_set_event_handler_f(dispatchSource, &EventSource::eventHandler);
130 dispatch_source_set_cancel_handler_f(dispatchSource, &EventSource::cancelHandler);
131 dispatch_set_finalizer_f(dispatchSource, &EventSource::finalizeHandler);
139 m_eventSources.set(machPort, eventSource);
152 HashMap<mach_port_t, EventSource*>::iterator it = m_eventSources.find(machPort);
157 EventSource* eventSource = it->second;
159 dispatch_source_cancel(eventSource->dispatchSource());
160 dispatch_release(eventSource->dispatchSource());