Idefisk
Tools
Tutorials
Reviews
VoIP Providers
Archives
AsteriskGuru Archives
Mailing List Archives
FAQ
Search
Memberlist
Usergroups
Register
Profile
Log in to check your private messages
Log in
[svn-commits] russell: trunk r197960 - /trunk/res/res_timing
AsteriskGuru Archives Forum Index
->
Asterisk-CVS
View previous topic
::
View next topic
Author
Message
svn-commits at lists.digi
Guest
Posted: Fri May 29, 2009 3:18 pm
Post subject: [svn-commits] russell: trunk r197960 - /trunk/res/res_timing
Author: russell
Date: Fri May 29 11:15:30 2009
New Revision: 197960
URL:
http://svn.asterisk.org/svn-view/asterisk?view=rev&rev=197960
Log:
Trim trailing whitespace so that I can work on this bug without it bothering me. :-)
Modified:
trunk/res/res_timing_pthread.c
Modified: trunk/res/res_timing_pthread.c
URL:
http://svn.asterisk.org/svn-view/asterisk/trunk/res/res_timing_pthread.c?view=diff&rev=197960&r1=197959&r2=197960
==============================================================================
--- trunk/res/res_timing_pthread.c (original)
+++ trunk/res/res_timing_pthread.c Fri May 29 11:15:30 2009
@@ -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 @@
if (timer->state != TIMER_STATE_CONTINUOUS) {
set_state(timer);
}
-
+
ao2_unlock(timer);
ao2_ref(timer, -1);
@@ -311,7 +311,7 @@
}
/*!
- * \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 @@
}
/*!
- * \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 @@
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 @@
break;
}
- res = read(rd_fd, buf,
+ res = read(rd_fd, buf,
(quantity < sizeof(buf)) ? quantity : sizeof(buf));
if (res == -1) {
@@ -404,7 +404,7 @@
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 @@
if (check_timer(timer)) {
write_byte(timer->pipe[PIPE_WRITE]);
}
-
+
ao2_unlock(timer);
return 0;
@@ -477,7 +477,7 @@
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;
}
_______________________________________________
--Bandwidth and Colocation Provided by
http://www.api-digital.com--
svn-commits mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/svn-commits
Back to top
Display posts from previous:
All Posts
1 Day
7 Days
2 Weeks
1 Month
3 Months
6 Months
1 Year
Oldest First
Newest First
AsteriskGuru Archives Forum Index
->
Asterisk-CVS
All times are GMT
Page
1
of
1
Jump to:
Select a forum
Asterisk Mailing Lists
----------------
Asterisk-Users
Asterisk-Dev
Asterisk-CVS
Asterisk-Biz
Asterisk-Doc
Asterisk-BSD
Asterisk-Announce
Asterisk Call Centers
Asterisk-Video
Asterisk-Speech-Rec
Bristuff-Users
You
cannot
post new topics in this forum
You
cannot
reply to topics in this forum
You
cannot
edit your posts in this forum
You
cannot
delete your posts in this forum
You
cannot
vote in polls in this forum
Powered by
phpBB
© 2001, 2005 phpBB Group