diff options
-rw-r--r-- | src/ports/SkMutex_pthread.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/ports/SkMutex_pthread.h b/src/ports/SkMutex_pthread.h index 1904140c4c..662e549f12 100644 --- a/src/ports/SkMutex_pthread.h +++ b/src/ports/SkMutex_pthread.h @@ -19,6 +19,7 @@ // a corresponding static finalizer). struct SkBaseMutex { void acquire() { + SkASSERT(fOwner != pthread_self()); // SkMutex is not re-entrant pthread_mutex_lock(&fMutex); SkDEBUGCODE(fOwner = pthread_self();) } |