Skip to content

Commit 4ab49c8

Browse files
committed
compiler : Add Cluster.is_thread_sync
1 parent 1df126b commit 4ab49c8

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

devito/ir/clusters/cluster.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -327,6 +327,10 @@ def is_thread_arrive(self):
327327
def is_thread_wait(self):
328328
return self._is_type(ThreadWait)
329329

330+
@cached_property
331+
def is_thread_sync(self):
332+
return self.is_thread_pool_sync or self.is_thread_wait
333+
330334
@cached_property
331335
def is_word_move(self):
332336
return (self._is_type(Indexed) and

0 commit comments

Comments
 (0)