equal
deleted
inserted
replaced
306 |
306 |
307 /*! Blocks until the request has been completed by the manager engine, or until \a msecs milliseconds has elapsed. |
307 /*! Blocks until the request has been completed by the manager engine, or until \a msecs milliseconds has elapsed. |
308 If \a msecs is zero, this function will block indefinitely. |
308 If \a msecs is zero, this function will block indefinitely. |
309 Returns true if the request was cancelled or completed successfully within the given period, otherwise false. |
309 Returns true if the request was cancelled or completed successfully within the given period, otherwise false. |
310 Some backends are unable to support this operation safely, and will return false immediately. |
310 Some backends are unable to support this operation safely, and will return false immediately. |
311 |
|
312 Note that any signals generated while waiting for the request to complete may be queued and delivered |
|
313 some time after this function has returned, when the calling thread's event loop is dispatched. If your code |
|
314 depends on your slots being invoked, you may need to process events after calling this function. |
|
315 */ |
311 */ |
316 bool QContactAbstractRequest::waitForFinished(int msecs) |
312 bool QContactAbstractRequest::waitForFinished(int msecs) |
317 { |
313 { |
318 QMutexLocker ml(&d_ptr->m_mutex); |
314 QMutexLocker ml(&d_ptr->m_mutex); |
319 QContactManagerEngine *engine = QContactManagerData::engine(d_ptr->m_manager); |
315 QContactManagerEngine *engine = QContactManagerData::engine(d_ptr->m_manager); |