id_traits, idm::get_last_id() added

id_traits for file/dir descriptors
idm::get_current_id() removed, thread-local last ID
This commit is contained in:
Nekotekina 2015-08-11 19:14:53 +03:00
parent d9403c2ed2
commit c2897cddd6
15 changed files with 166 additions and 165 deletions

View file

@ -11,7 +11,7 @@
CPUThread::CPUThread(CPUThreadType type, const std::string& name, std::function<std::string()> thread_name)
: m_state({ CPU_STATE_STOPPED })
, m_id(idm::get_current_id())
, m_id(idm::get_last_id())
, m_type(type)
, m_name(name)
{