fix r3830 bug reported by Gimp_

This commit is contained in:
Charles Kerr 2007-11-16 05:43:47 +00:00
parent c3dce15a9e
commit 1464dc7962
2 changed files with 13 additions and 4 deletions

View File

@ -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 )
{

View File

@ -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 );