X-Git-Url: http://git.silcnet.org/gitweb/?p=silc.git;a=blobdiff_plain;f=lib%2Fsilcutil%2Fsilcmutex.h;h=6e8efeb2b7dfd807ed63d9696f005351bb23d3bf;hp=070a2e9a3e0e774e5e0934cb084eb0680efb1ed4;hb=52e57c880aba9c5e89f59d962eb9af75670b76e0;hpb=ae1482a76c29db9fdcd6ed6cf63d312a37a5cb01 diff --git a/lib/silcutil/silcmutex.h b/lib/silcutil/silcmutex.h index 070a2e9a..6e8efeb2 100644 --- a/lib/silcutil/silcmutex.h +++ b/lib/silcutil/silcmutex.h @@ -190,7 +190,7 @@ void silc_rwlock_free(SilcRwLock rwlock); * is locked by a writer the current thread will block until the other * thread has issued silc_rwlock_unlock for the `rwlock'. This function * may be called multiple times to acquire the read lock. There must be - * same amount of silc_rwlock_unlock calls. If `rwlock' is NULL this + * same number of silc_rwlock_unlock calls. If `rwlock' is NULL this * function has no effect. * ***/ @@ -207,7 +207,9 @@ void silc_rwlock_rdlock(SilcRwLock rwlock); * Acquires write lock of the read/write lock `rwlock'. If the `rwlock' * is locked by a writer or a reader the current thread will block until * the other thread(s) have issued silc_rwlock_unlock for the `rwlock'. - * If `rwlock' is NULL this function has no effect. + * A thread may acquire the write lock only once. A deadlock may occur + * if thread attempts to acquire the write lock when it has already done + * so. If `rwlock' is NULL this function has no effect. * ***/ void silc_rwlock_wrlock(SilcRwLock rwlock);