-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make Pool constructor compatible with simpy.Container
* Fix unsafe loop in Pool._trigger_get * Add check that Pool.put and Pool.get take only positive values * Add tests to validate correct handling of Pool.put(0) and Pool.get(0)
- Loading branch information
1 parent
55b9921
commit a33c096
Showing
2 changed files
with
44 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters