- fixes compilation issues on 64bit Darwin.

git-svn-id: http://svn.berlios.de/svnroot/repos/sems/trunk@1711 8eb893ce-cfd4-0310-b710-fb5ebe64c474
sayer/1.4-spce2.6
Raphael Coeffic 17 years ago
parent 12490d7291
commit 959d9452b4

@ -425,7 +425,7 @@ string AmSession::getNewId()
id += int2hex(get_random()) + "-";
id += int2hex(t.tv_sec) + int2hex(t.tv_usec) + "-";
id += int2hex((unsigned int) pthread_self());
id += int2hex((unsigned int)((unsigned long)pthread_self()));
return id;
}

@ -64,12 +64,12 @@ AmThread::AmThread()
void * AmThread::_start(void * _t)
{
AmThread* _this = (AmThread*)_t;
_this->_pid = (pid_t) _this->_td;
DBG("Thread %lu is starting.\n", (unsigned long int) _this->_pid);
_this->_pid = (unsigned long) _this->_td;
DBG("Thread %lu is starting.\n", (unsigned long) _this->_pid);
_this->_stopped.set(false);
_this->run();
DBG("Thread %lu is ending.\n", (unsigned long int) _this->_pid);
DBG("Thread %lu is ending.\n", (unsigned long) _this->_pid);
_this->_stopped.set(true);
//thread_nr_mut.lock();

@ -170,7 +170,7 @@ protected:
virtual void on_stop()=0;
public:
pid_t _pid;
unsigned long _pid;
AmThread();
virtual ~AmThread() {}

Loading…
Cancel
Save