Changeset 9469


Ignore:
Timestamp:
Nov 1, 2009, 10:26:35 PM (13 years ago)
Author:
livings124
Message:

sleep for 0.05 seconds, and use cocoa to do it

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/Torrent.m

    r9468 r9469  
    461461    tr_torrentSetLocation(fHandle, [folder UTF8String], YES, NULL, &status);
    462462   
    463     while (status == TR_LOC_MOVING)
    464         usleep(200); //block while moving (for now)
     463    while (status == TR_LOC_MOVING) //block while moving (for now)
     464        [NSThread sleepForTimeInterval: 0.05];
    465465   
    466466    if (status == TR_LOC_DONE)
Note: See TracChangeset for help on using the changeset viewer.