[asterisk-commits] trunk r16615 - /trunk/include/asterisk/lock.h

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Thu Mar 30 17:25:51 MST 2006


Author: oej
Date: Thu Mar 30 18:25:50 2006
New Revision: 16615

URL: http://svn.digium.com/view/asterisk?rev=16615&view=rev
Log:
- Change AST_INLINE_AP to AST_INLINE_API for non-386 systems :-)
- Doxygen changes

Modified:
    trunk/include/asterisk/lock.h

Modified: trunk/include/asterisk/lock.h
URL: http://svn.digium.com/view/asterisk/trunk/include/asterisk/lock.h?rev=16615&r1=16614&r2=16615&view=diff
==============================================================================
--- trunk/include/asterisk/lock.h (original)
+++ trunk/include/asterisk/lock.h Thu Mar 30 18:25:50 2006
@@ -21,12 +21,14 @@
  *
  * - See \ref LockDef
  */
+
 /* \page LockDef Asterisk thread locking models
  *
  * This file provides several different implementation of the functions,
  * depending on the platform, the use of DEBUG_THREADS, and the way
  * global mutexes are initialized.
- * At the moment, we have 3 ways to initialize global mutexes, depending on
+ *
+ * \par At the moment, we have 3 ways to initialize global mutexes, depending on
  *
  *  - \b static: the mutex is assigned the value AST_MUTEX_INIT_VALUE
  *        this is done at compile time, and is the way used on Linux.
@@ -212,7 +214,7 @@
 }
 
 #if defined(AST_MUTEX_INIT_W_CONSTRUCTORS)
-/* if AST_MUTEX_INIT_W_CONSTRUCTORS is defined, use file scope
+/*! \brief  if AST_MUTEX_INIT_W_CONSTRUCTORS is defined, use file scope
  constrictors/destructors to create/destroy mutexes.  */
 #define __AST_MUTEX_DEFINE(scope,mutex) \
 	scope ast_mutex_t mutex = AST_MUTEX_INIT_VALUE; \
@@ -225,11 +227,13 @@
 	ast_mutex_destroy(&mutex); \
 }
 #elif defined(AST_MUTEX_INIT_ON_FIRST_USE)
-/* if AST_MUTEX_INIT_ON_FIRST_USE is defined, mutexes are created on
+/*! \note
+ if AST_MUTEX_INIT_ON_FIRST_USE is defined, mutexes are created on
  first use.  The performance impact on FreeBSD should be small since
  the pthreads library does this itself to initialize errror checking
  (defaulty type) mutexes.  If nither is defined, the pthreads librariy
- does the initialization itself on first use. */ 
+ does the initialization itself on first use. 
+*/ 
 #define __AST_MUTEX_DEFINE(scope,mutex) \
 	scope ast_mutex_t mutex = AST_MUTEX_INIT_VALUE
 #else /* AST_MUTEX_INIT_W_CONSTRUCTORS */
@@ -709,7 +713,7 @@
 	return (v);
 })
 #else   /* low performance version in utils.c */
-AST_INLINE_AP(int ast_atomic_fetchadd_int(volatile int *p, int v),
+AST_INLINE_API(int ast_atomic_fetchadd_int(volatile int *p, int v),
 {
 	return ast_atomic_fetchadd_int_slow(p, v);
 })



More information about the asterisk-commits mailing list