Basic hacky SetAffinity.

This commit is contained in:
Ben Vanik
2014-10-28 22:10:40 -07:00
parent 3daf362dfe
commit 1566b4c890
2 changed files with 18 additions and 2 deletions

View File

@@ -23,6 +23,8 @@ namespace threading {
// Gets the current high-performance tick count.
uint64_t ticks();
// TODO(benvanik): processor info API.
// Gets a stable thread-specific ID, but may not be. Use for informative
// purposes only.
uint32_t current_thread_id();