Changeset 6456 for branches

Show
Ignore:
Timestamp:
07/20/08 22:25:21 (4 months ago)
Author:
erijo
Message:

64-bit fixes.

Location:
branches/newapi/licq
Files:
5 modified

Legend:

Unmodified
Added
Removed
  • branches/newapi/licq/licq/interface/logsink.h

    r5912 r6456  
    2626#include <iosfwd> 
    2727#include <string> 
     28#include <time.h> 
    2829#include <vector> 
    2930 
     
    4142    struct Time 
    4243    { 
    43       unsigned int sec; 
     44      time_t sec; 
    4445      unsigned int msec; 
    4546    } time; 
  • branches/newapi/licq/licq/thread/thread.h

    r5925 r6456  
    8181     * @param status The thread's exit status. 
    8282     */ 
    83     static void exit(int status) LICQ_NO_RETURN; 
     83    static void exit(long status) LICQ_NO_RETURN; 
    8484  }; 
    8585 
     
    9696     * @see exit 
    9797     */ 
    98     virtual int run() = 0; 
     98    virtual long run() = 0; 
    9999 
    100100    /** 
     
    104104     * @see run 
    105105     */ 
    106     void exit(int status) LICQ_NO_RETURN; 
     106    void exit(long status) LICQ_NO_RETURN; 
    107107 
    108108    /** 
     
    182182   * or Thread::StateCanceled. 
    183183   */ 
    184   int join(); 
     184  long join(); 
    185185 
    186186  /** 
  • branches/newapi/licq/src/thread/test/threadspecifictest.cpp

    r5895 r6456  
    6767 
    6868  protected: 
    69     int run() 
     69    long run() 
    7070    { 
    7171      myTls->setData(new Counter()); 
  • branches/newapi/licq/src/thread/test/threadtest.cpp

    r5312 r6456  
    2525{ 
    2626public: 
    27   int run() 
     27  long run() 
    2828  { 
    29     int status = myInt; 
     29    long status = myInt; 
    3030    myInt += 12; 
    3131    if (status > 20) 
     
    3535  } 
    3636 
    37   int myInt; 
     37  long myInt; 
    3838}; 
    3939 
  • branches/newapi/licq/src/thread/thread.cpp

    r5925 r6456  
    3232#include <signal.h> 
    3333 
    34 void Licq::Thread::Current::exit(int status) 
     34void Licq::Thread::Current::exit(long status) 
    3535{ 
    3636  ::pthread_exit(reinterpret_cast<void*>(status)); 
    3737} 
    3838 
    39 void Licq::Thread::Entry::exit(int status) 
     39void Licq::Thread::Entry::exit(long status) 
    4040{ 
    4141  Licq::Thread::Current::exit(status); 
     
    144144 
    145145    Licq::Thread::Entry* entry = static_cast<Licq::Thread::Entry*>(arg); 
    146     int ret = -1; 
     146    long ret = -1; 
    147147    try 
    148148    { 
     
    175175  } 
    176176 
    177   int join() 
     177  long join() 
    178178  { 
    179179    assert(myState == StateRunning); 
     
    198198    { 
    199199      myState = StateJoined; 
    200       return reinterpret_cast<int>(ret); 
     200      return reinterpret_cast<long>(ret); 
    201201    } 
    202202  } 
     
    277277} 
    278278 
    279 int Licq::Thread::join() 
     279long Licq::Thread::join() 
    280280{ 
    281281  return myPrivate->join();