From: Mark Michelson Date: Mon, 19 Nov 2012 22:34:27 +0000 (+0000) Subject: Get rid of trailing whitespace. X-Git-Tag: 13.0.0-beta1~2194^2~153 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e2196d79815abe7f7d20f9151d17f555f8d45371;p=thirdparty%2Fasterisk.git Get rid of trailing whitespace. git-svn-id: https://origsvn.digium.com/svn/asterisk/team/mmichelson/threadpool@376500 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/include/asterisk/taskprocessor.h b/include/asterisk/taskprocessor.h index 7f80e0269d..6359c057e7 100644 --- a/include/asterisk/taskprocessor.h +++ b/include/asterisk/taskprocessor.h @@ -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 @@ struct ast_taskprocessor; /*! * \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 @@ enum ast_tps_options { 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 @@ struct ast_taskprocessor_listener_callbacks { * \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 @@ struct ast_taskprocessor_listener_callbacks { * \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 @@ struct ast_taskprocessor_listener *ast_taskprocessor_listener_alloc(const struct * 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 diff --git a/main/taskprocessor.c b/main/taskprocessor.c index 69bec7ca00..d83228f335 100644 --- a/main/taskprocessor.c +++ b/main/taskprocessor.c @@ -128,7 +128,7 @@ struct default_taskprocessor_listener_pvt { 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 @@ struct ast_taskprocessor_listener *ast_taskprocessor_listener_alloc(const struct { RAII_VAR(struct ast_taskprocessor_listener *, listener, ao2_alloc(sizeof(*listener), listener_destroy), ao2_cleanup); - + if (!listener) { return NULL; } @@ -614,7 +614,7 @@ int ast_taskprocessor_execute(struct ast_taskprocessor *tps) { struct tps_task *t; int size; - + if (!(t = tps_taskprocessor_pop(tps))) { return 0; }