fix r3830 bug reported by Gimp_
This commit is contained in:
parent
c3dce15a9e
commit
1464dc7962
|
@ -1005,8 +1005,10 @@ enum
|
|||
};
|
||||
|
||||
static void
|
||||
checkAndStartCB( tr_torrent * tor )
|
||||
checkAndStartImpl( void * vtor )
|
||||
{
|
||||
tr_torrent * tor = vtor;
|
||||
|
||||
tr_globalLock( tor->handle );
|
||||
|
||||
tor->isRunning = 1;
|
||||
|
@ -1020,7 +1022,13 @@ checkAndStartCB( tr_torrent * tor )
|
|||
|
||||
tr_globalUnlock( tor->handle );
|
||||
}
|
||||
|
||||
|
||||
static void
|
||||
checkAndStartCB( tr_torrent * tor )
|
||||
{
|
||||
tr_runInEventThread( tor->handle, checkAndStartImpl, tor );
|
||||
}
|
||||
|
||||
void
|
||||
tr_torrentStart( tr_torrent * tor )
|
||||
{
|
||||
|
|
|
@ -37,8 +37,6 @@ void tr_evhttp_make_request (struct tr_handle * tr_handle,
|
|||
enum evhttp_cmd_type type,
|
||||
char * uri);
|
||||
|
||||
int tr_amInEventThread( struct tr_handle * handle );
|
||||
|
||||
/**
|
||||
***
|
||||
**/
|
||||
|
@ -60,6 +58,9 @@ tr_timer* tr_timerNew( struct tr_handle * handle,
|
|||
*/
|
||||
void tr_timerFree( tr_timer ** timer );
|
||||
|
||||
|
||||
int tr_amInEventThread( struct tr_handle * handle );
|
||||
|
||||
void tr_runInEventThread( struct tr_handle * handle,
|
||||
void func( void* ),
|
||||
void * user_data );
|
||||
|
|
Loading…
Reference in New Issue