diff options
Diffstat (limited to 'e-util/e-msgport.c')
-rw-r--r-- | e-util/e-msgport.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/e-util/e-msgport.c b/e-util/e-msgport.c index 683aa85d78..d034f0deaf 100644 --- a/e-util/e-msgport.c +++ b/e-util/e-msgport.c @@ -758,6 +758,14 @@ int e_mutex_unlock(EMutex *m) return -1; } +void e_mutex_assert_locked(EMutex *m) +{ + g_return_if_fail (m->type == E_MUTEX_REC); + pthread_mutex_lock(&m->mutex); + g_assert(m->owner == pthread_self()); + pthread_mutex_unlock(&m->mutex); +} + #ifdef STANDALONE EMsgPort *server_port; |