/* This Source Code Form is subject to the terms of the Mozilla Public *License,v.2.0.IfacopyoftheMPLwasnotdistributedwiththis
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
DWORD dwWaitResult;
dwWaitResult = WaitForSingleObject(mHandle, // handle to mutex
INFINITE); // no time-out interval
switch (dwWaitResult) { // The thread got ownership of the mutex case WAIT_OBJECT_0:
mStatus = true; break;
// The thread got ownership of an abandoned mutex // The shmem is in an indeterminate state case WAIT_ABANDONED:
mStatus = false; break; default:
mStatus = false; break;
}
}
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.