Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Nov 29, 2007, 6:13:47 PM (16 years ago)
Author:
landauf
Message:

changed retos usleep hack to a more generic solution:
#ifdef WIN32
#include <windows.h>
#define usleep(x) Sleep((x)/1000)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/FICN/src/network/PacketBufferTestExt.cc

    r351 r355  
    77
    88using namespace network;
    9 
    10 // workaround for usleep(int) under windows
    11 #ifdef WIN32
    12 #include "winbase.h"
    13 #endif
    149
    1510
     
    2722    test->push(&event);
    2823    if(i==5)
    29 // under windows, use Sleep(milliseconds) instead of usleep(microseconds)
    30 #ifdef WIN32
    31       Sleep(200);
    32 #else
    3324      usleep(200000);
    34 #endif
    3525  }
    3626  test->setClosed(true);
Note: See TracChangeset for help on using the changeset viewer.