Skip to content
This repository has been archived by the owner on Oct 14, 2022. It is now read-only.

Commit

Permalink
disable warning about repeated thread creation.
Browse files Browse the repository at this point in the history
Creating threads with the same identifier is allowed on different branches
or if the previous thread already terminated and freed the used identifier.
  • Loading branch information
kfriedberger committed Dec 8, 2020
1 parent fecd3d8 commit deeebc0
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions lint/witnesslint/linter.py
Original file line number Diff line number Diff line change
Expand Up @@ -461,10 +461,11 @@ def handle_edge_data(self, data, key, parent):
elif key == witness.CREATETHREAD:
self.witness.thread_creations.add(data.text)
if data.text in self.witness.threads:
logging.warning(
"Thread with id {} has already been created".format(data.text),
data.sourceline,
)
# logging.warning(
# "Thread with id {} has already been created".format(data.text),
# data.sourceline,
# )
pass
else:
self.witness.threads[data.text] = None
elif self.witness.defined_keys.get(key) == witness.EDGE:
Expand Down

0 comments on commit deeebc0

Please sign in to comment.