fw4spl
Worker.cpp
1 /* ***** BEGIN LICENSE BLOCK *****
2  * FW4SPL - Copyright (C) IRCAD, 2009-2017.
3  * Distributed under the terms of the GNU Lesser General Public License (LGPL) as
4  * published by the Free Software Foundation.
5  * ****** END LICENSE BLOCK ****** */
6 
7 #include "fwThread/Worker.hpp"
8 
9 namespace fwThread
10 {
11 
12 //------------------------------------------------------------------------------
13 
14 ThreadIdType getCurrentThreadId()
15 {
16  return std::this_thread::get_id();
17 }
18 
19 //SPTR(Worker) Worker::defaultFactory() => WorkerAsio.cpp
20 
21 } //namespace fwThread
FWTHREAD_API ThreadIdType getCurrentThreadId()
Returns the current thread id.
Definition: Worker.cpp:14
This namespace fwThread provides few tools to execute asynchronous tasks on different threads...