From d0f80d2c41d115e3f62eca06a44c92c01ece6154 Mon Sep 17 00:00:00 2001 From: Tim Potter Date: Sat, 9 Mar 2002 09:48:35 +0000 Subject: Doc. (This used to be commit b9ab79f30a931c694b1c181b1c2abd38186692ae) --- source3/lib/messages.c | 23 ++++++++++++++--------- 1 file changed, 14 insertions(+), 9 deletions(-) (limited to 'source3/lib') diff --git a/source3/lib/messages.c b/source3/lib/messages.c index 7ce050d70d..5974c5a872 100644 --- a/source3/lib/messages.c +++ b/source3/lib/messages.c @@ -457,13 +457,13 @@ BOOL message_send_all(TDB_CONTEXT *conn_tdb, int msg_type, return True; } -/** @} **/ - +/** + * Lock the messaging tdb based on a string - this is used as a primitive + * form of mutex between smbd instances. + * + * @param name A string identifying the name of the mutex. + */ -/* - lock the messaging tdb based on a string - this is used as a primitive form of mutex - between smbd instances. -*/ BOOL message_named_mutex(const char *name) { TDB_DATA key; @@ -476,9 +476,12 @@ BOOL message_named_mutex(const char *name) return (tdb_chainlock(tdb, key) == 0); } -/* - unlock a named mutex -*/ +/** + * Unlock a named mutex. + * + * @param name A string identifying the name of the mutex. + */ + void message_named_mutex_release(const char *name) { TDB_DATA key; @@ -488,3 +491,5 @@ void message_named_mutex_release(const char *name) tdb_chainunlock(tdb, key); } + +/** @} **/ -- cgit