[asterisk-commits] mmichelson: branch mmichelson/threadpool r376500 - in /team/mmichelson/thread...

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Mon Nov 19 16:34:30 CST 2012


Author: mmichelson
Date: Mon Nov 19 16:34:27 2012
New Revision: 376500

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=376500
Log:
Get rid of trailing whitespace.


Modified:
    team/mmichelson/threadpool/include/asterisk/taskprocessor.h
    team/mmichelson/threadpool/main/taskprocessor.c

Modified: team/mmichelson/threadpool/include/asterisk/taskprocessor.h
URL: http://svnview.digium.com/svn/asterisk/team/mmichelson/threadpool/include/asterisk/taskprocessor.h?view=diff&rev=376500&r1=376499&r2=376500
==============================================================================
--- team/mmichelson/threadpool/include/asterisk/taskprocessor.h (original)
+++ team/mmichelson/threadpool/include/asterisk/taskprocessor.h Mon Nov 19 16:34:27 2012
@@ -31,7 +31,7 @@
  * in the task queue occur.
  *
  * A task is a wrapper around a task-handling function pointer and a data
- * pointer.  A task is pushed into a taskprocessor queue using the 
+ * pointer.  A task is pushed into a taskprocessor queue using the
  * ast_taskprocessor_push(taskprocessor, taskhandler, taskdata) function and freed by the
  * taskprocessor after the task handling function returns.  A module releases its
  * reference to a taskprocessor using the ast_taskprocessor_unreference() function which
@@ -59,9 +59,9 @@
 /*!
  * \brief ast_tps_options for specification of taskprocessor options
  *
- * Specify whether a taskprocessor should be created via ast_taskprocessor_get() if the taskprocessor 
- * does not already exist.  The default behavior is to create a taskprocessor if it does not already exist 
- * and provide its reference to the calling function.  To only return a reference to a taskprocessor if 
+ * Specify whether a taskprocessor should be created via ast_taskprocessor_get() if the taskprocessor
+ * does not already exist.  The default behavior is to create a taskprocessor if it does not already exist
+ * and provide its reference to the calling function.  To only return a reference to a taskprocessor if
  * and only if it exists, use the TPS_REF_IF_EXISTS option in ast_taskprocessor_get().
  */
 enum ast_tps_options {
@@ -74,7 +74,7 @@
 struct ast_taskprocessor_listener;
 
 struct ast_taskprocessor_listener_callbacks {
-	/*! 
+	/*!
 	 * \brief Allocate the listener's private data
 	 *
 	 * It is not necessary to assign the private data to the listener.
@@ -84,14 +84,14 @@
 	 * \retval non-NULL Allocated private data
 	 */
 	void *(*alloc)(struct ast_taskprocessor_listener *listener);
-	/*! 
+	/*!
 	 * \brief Indicates a task was pushed to the processor
 	 *
 	 * \param listener The listener
 	 * \param was_empty If non-zero, the taskprocessor was empty prior to the task being pushed
 	 */
 	void (*task_pushed)(struct ast_taskprocessor_listener *listener, int was_empty);
-	/*! 
+	/*!
 	 * \brief Indicates the task processor has become empty
 	 *
 	 * \param listener The listener
@@ -109,7 +109,7 @@
 	 * \param listener The listener
 	 */
 	void (*shutdown)(struct ast_taskprocessor_listener *listener);
-	/*! 
+	/*!
 	 * \brief Destroy the listener's private data
 	 *
 	 * It is required that you free the private data in this callback
@@ -157,7 +157,7 @@
  * The default behavior of instantiating a taskprocessor if one does not already exist can be
  * disabled by specifying the TPS_REF_IF_EXISTS ast_tps_options as the second argument to ast_taskprocessor_get().
  * \param name The name of the taskprocessor
- * \param create Use 0 by default or specify TPS_REF_IF_EXISTS to return NULL if the taskprocessor does 
+ * \param create Use 0 by default or specify TPS_REF_IF_EXISTS to return NULL if the taskprocessor does
  * not already exist
  * return A pointer to a reference counted taskprocessor under normal conditions, or NULL if the
  * TPS_REF_IF_EXISTS reference type is specified and the taskprocessor does not exist

Modified: team/mmichelson/threadpool/main/taskprocessor.c
URL: http://svnview.digium.com/svn/asterisk/team/mmichelson/threadpool/main/taskprocessor.c?view=diff&rev=376500&r1=376499&r2=376500
==============================================================================
--- team/mmichelson/threadpool/main/taskprocessor.c (original)
+++ team/mmichelson/threadpool/main/taskprocessor.c Mon Nov 19 16:34:27 2012
@@ -128,7 +128,7 @@
 
 static void default_tps_wake_up(struct default_taskprocessor_listener_pvt *pvt, int should_die)
 {
-	SCOPED_MUTEX(lock, &pvt->lock); 
+	SCOPED_MUTEX(lock, &pvt->lock);
 	pvt->wake_up = 1;
 	pvt->dead = should_die;
 	ast_cond_signal(&pvt->cond);
@@ -472,7 +472,7 @@
 {
 	RAII_VAR(struct ast_taskprocessor_listener *, listener,
 			ao2_alloc(sizeof(*listener), listener_destroy), ao2_cleanup);
-	
+
 	if (!listener) {
 		return NULL;
 	}
@@ -614,7 +614,7 @@
 {
 	struct tps_task *t;
 	int size;
-	
+
 	if (!(t = tps_taskprocessor_pop(tps))) {
 		return 0;
 	}




More information about the asterisk-commits mailing list