aboutsummaryrefslogtreecommitdiffstats
path: root/res/res_timing_pthread.c
diff options
context:
space:
mode:
authorrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2009-05-29 16:15:30 +0000
committerrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2009-05-29 16:15:30 +0000
commit95162e811d3c87ba80905752183e8b55830c82f3 (patch)
tree7802110dbf6f062df684758e8c4a66892f469906 /res/res_timing_pthread.c
parenta98202f13faeeb371c5c1514d36b302cb15e9e81 (diff)
Trim trailing whitespace so that I can work on this bug without it bothering me. :-)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@197960 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'res/res_timing_pthread.c')
-rw-r--r--res/res_timing_pthread.c22
1 files changed, 11 insertions, 11 deletions
diff --git a/res/res_timing_pthread.c b/res/res_timing_pthread.c
index a45287588..8eea1a0f9 100644
--- a/res/res_timing_pthread.c
+++ b/res/res_timing_pthread.c
@@ -16,11 +16,11 @@
* at the top of the source tree.
*/
-/*!
+/*!
* \file
* \author Russell Bryant <russell@digium.com>
*
- * \brief pthread timing interface
+ * \brief pthread timing interface
*/
#include "asterisk.h"
@@ -186,7 +186,7 @@ static int pthread_timer_set_rate(int handle, unsigned int rate)
if (timer->state != TIMER_STATE_CONTINUOUS) {
set_state(timer);
}
-
+
ao2_unlock(timer);
ao2_ref(timer, -1);
@@ -311,7 +311,7 @@ static void pthread_timer_destructor(void *obj)
}
/*!
- * \note only PIPE_READ is guaranteed valid
+ * \note only PIPE_READ is guaranteed valid
*/
static int pthread_timer_hash(const void *obj, const int flags)
{
@@ -321,7 +321,7 @@ static int pthread_timer_hash(const void *obj, const int flags)
}
/*!
- * \note only PIPE_READ is guaranteed valid
+ * \note only PIPE_READ is guaranteed valid
*/
static int pthread_timer_cmp(void *obj, void *arg, int flags)
{
@@ -339,9 +339,9 @@ static int check_timer(struct pthread_timer *timer)
struct timeval now;
if (timer->state == TIMER_STATE_IDLE || timer->state == TIMER_STATE_CONTINUOUS) {
- return 0;
+ return 0;
}
-
+
now = ast_tvnow();
if (timer->tick_count < (ast_tvdiff_ms(now, timer->start) / timer->interval)) {
@@ -379,7 +379,7 @@ static void read_pipe(int rd_fd, unsigned int quantity, int clear)
break;
}
- res = read(rd_fd, buf,
+ res = read(rd_fd, buf,
(quantity < sizeof(buf)) ? quantity : sizeof(buf));
if (res == -1) {
@@ -404,7 +404,7 @@ static void write_byte(int wr_fd)
ssize_t res;
unsigned char x = 42;
- res = write(wr_fd, &x, 1);
+ res = write(wr_fd, &x, 1);
if (res == -1) {
if (errno == EAGAIN) {
@@ -428,7 +428,7 @@ static int run_timer(void *obj, void *arg, int flags)
if (check_timer(timer)) {
write_byte(timer->pipe[PIPE_WRITE]);
}
-
+
ao2_unlock(timer);
return 0;
@@ -477,7 +477,7 @@ static int init_timing_thread(void)
static int load_module(void)
{
- if (!(pthread_timers = ao2_container_alloc(PTHREAD_TIMER_BUCKETS,
+ if (!(pthread_timers = ao2_container_alloc(PTHREAD_TIMER_BUCKETS,
pthread_timer_hash, pthread_timer_cmp))) {
return AST_MODULE_LOAD_DECLINE;
}