MCPcopy Create free account
hub / github.com/MailCore/mailcore2 / runOperation

Method runOperation

src/async/imap/MCIMAPAsyncConnection.cpp:284–296  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

282}
283
284void IMAPAsyncConnection::runOperation(IMAPOperation * operation)
285{
286 if (mScheduledAutomaticDisconnect) {
287#if __APPLE__
288 cancelDelayedPerformMethodOnDispatchQueue((Object::Method) &IMAPAsyncConnection::tryAutomaticDisconnectAfterDelay, NULL, dispatchQueue());
289#else
290 cancelDelayedPerformMethod((Object::Method) &IMAPAsyncConnection::tryAutomaticDisconnectAfterDelay, NULL);
291#endif
292 mOwner->release();
293 mScheduledAutomaticDisconnect = false;
294 }
295 mQueue->addOperation(operation);
296}
297
298void IMAPAsyncConnection::tryAutomaticDisconnect()
299{

Callers 1

startMethod · 0.45

Calls 2

releaseMethod · 0.80
addOperationMethod · 0.45

Tested by

no test coverage detected