projects
/
c11tester.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Find a faster way to get currently executing thread's id
[c11tester.git]
/
action.cc
diff --git
a/action.cc
b/action.cc
index 65e1447f1a755cae8416df96aa330addff0f4711..4cdca0d7a7272b2f4c6eef265ef34ca613bc0c3f 100644
(file)
--- a/
action.cc
+++ b/
action.cc
@@
-111,8
+111,7
@@
ModelAction::ModelAction(action_type_t type, memory_order order, void *loc,
/* References to NULL atomic variables can end up here */
ASSERT(loc);
this->size = size;
/* References to NULL atomic variables can end up here */
ASSERT(loc);
this->size = size;
- Thread *t = thread_current();
- this->tid = t->get_id();
+ this->tid = thread_current_id();
}
}
@@
-146,8
+145,7
@@
ModelAction::ModelAction(action_type_t type, const char * position, memory_order
/* References to NULL atomic variables can end up here */
ASSERT(loc);
this->size = size;
/* References to NULL atomic variables can end up here */
ASSERT(loc);
this->size = size;
- Thread *t = thread_current();
- this->tid = t->get_id();
+ this->tid = thread_current_id();
}
}