Ignore:
Timestamp:
Jun 26, 2007, 6:45:03 PM (14 years ago)
Author:
charles
Message:

Thread safety improvements. Also, stopping/starting/rechecking/etc. torrents no longer blocks the calling thread. Since this a big commit, it will probably create some short-term pain via new bugs.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/inout.h

    r1822 r2202  
    2828typedef struct tr_io_s tr_io_t;
    2929
    30 void      tr_ioLoadResume  ( tr_torrent_t * );
    31 void      tr_ioRemoveResume( tr_torrent_t * tor );
     30int       tr_ioLoadResume  ( tr_torrent_t * );
     31void      tr_ioRemoveResume( tr_torrent_t * );
    3232
    33 tr_io_t * tr_ioInit        ( tr_torrent_t * );
     33
     34enum
     35{
     36  TR_RECHECK_FAST,  /* only try the fast resume, even if it's incomplete */
     37  TR_RECHECK_FORCE  /* ignore the fast resume data; recheck from disk */
     38};
     39int tr_ioCheckFiles  ( tr_torrent_t *, int recheckMode );
     40
     41
     42tr_io_t * tr_ioInitFast        ( tr_torrent_t * );
    3443
    3544/***********************************************************************
Note: See TracChangeset for help on using the changeset viewer.