|
@@ -1,5 +1,8 @@
|
|
|
#include "TickWorker.h"
|
|
|
|
|
|
+#include <sys/syscall.h>
|
|
|
+#include <unistd.h>
|
|
|
+
|
|
|
#include "Block.h"
|
|
|
|
|
|
TickWorker::TickWorker(TickQueue* queue)
|
|
@@ -10,8 +13,7 @@ TickWorker::TickWorker(TickQueue* queue)
|
|
|
start();
|
|
|
}
|
|
|
|
|
|
-TickWorker::~TickWorker()
|
|
|
-{}
|
|
|
+TickWorker::~TickWorker() {}
|
|
|
|
|
|
void TickWorker::thread()
|
|
|
{
|
|
@@ -21,7 +23,12 @@ void TickWorker::thread()
|
|
|
zTick->tick(queue);
|
|
|
zTick = queue->zNext(waiting);
|
|
|
}
|
|
|
- std::cout << "exiting tick worker " << GetThreadId(this->getThreadHandle());
|
|
|
+
|
|
|
+
|
|
|
+ pid_t tid;
|
|
|
+ tid = syscall(SYS_gettid);
|
|
|
+ Framework::Text txt = Framework::Text("exiting tick worker ") + tid + "\n";
|
|
|
+ std::cout << txt.getText();
|
|
|
}
|
|
|
|
|
|
bool TickWorker::isWaiting() const
|