mirror of
https://github.com/transmission/transmission.git
synced 2025-12-24 20:35:36 +00:00
(trunk libT) make tr_updateTime() inlined
This commit is contained in:
@@ -52,6 +52,8 @@
|
||||
#include "version.h"
|
||||
|
||||
|
||||
time_t transmission_now = 0;
|
||||
|
||||
int messageLevel = TR_MSG_INF;
|
||||
static tr_lock * messageLock = NULL;
|
||||
static tr_bool messageQueuing = FALSE;
|
||||
@@ -69,18 +71,6 @@ static int messageQueueCount = 0;
|
||||
****
|
||||
***/
|
||||
|
||||
time_t transmission_now = 0;
|
||||
|
||||
void
|
||||
tr_timeUpdate( time_t now )
|
||||
{
|
||||
transmission_now = now;
|
||||
}
|
||||
|
||||
/***
|
||||
****
|
||||
***/
|
||||
|
||||
void
|
||||
tr_msgInit( void )
|
||||
{
|
||||
|
||||
@@ -541,8 +541,8 @@ extern time_t transmission_now;
|
||||
*/
|
||||
static inline time_t tr_time( void ) { return transmission_now; }
|
||||
|
||||
/** @brief Private libtransmission function to update the second counter used by tr_time() */
|
||||
void tr_timeUpdate( time_t now );
|
||||
/** @brief Private libtransmission function to update tr_time()'s counter */
|
||||
static inline void tr_timeUpdate( time_t now ) { transmission_now = now; }
|
||||
|
||||
/***
|
||||
****
|
||||
|
||||
Reference in New Issue
Block a user