projects
/
cdsspec-compiler.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
add yield support
[cdsspec-compiler.git]
/
action.cc
diff --git
a/action.cc
b/action.cc
index be8c4a6c0cdc69bde75fd08436a33705fa9157af..4b380c2dd404fafc1b4be9846433967daa8cd167 100644
(file)
--- a/
action.cc
+++ b/
action.cc
@@
-151,6
+151,11
@@
bool ModelAction::could_be_write() const
return is_write() || is_rmwr();
}
+bool ModelAction::is_yield() const
+{
+ return type == THREAD_YIELD;
+}
+
bool ModelAction::is_rmwr() const
{
return type == ATOMIC_RMWR;