-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use my forked semaphore implementation
Since I found a bug in `github.com/marusama/semaphore` Issue #3 that had a potential deadlock which was avoided/worked-around. however after submitting a PR and fixing the said bug the performance was halved. Now the `x/sync/semaphore` is much better performance-wise however it is not resizable, hence use my forked resizable semaphore.
- Loading branch information
1 parent
a9a7bcc
commit d2e742a
Showing
3 changed files
with
10 additions
and
18 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
module github.com/sherifabdlnaby/gpool | ||
|
||
require github.com/marusama/semaphore v0.0.0-20181027083059-edd5217b5829 | ||
require github.com/sherifabdlnaby/semaphore v0.0.0-20190117073948-fc3e9b0e3834 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
github.com/marusama/semaphore v0.0.0-20181027083059-edd5217b5829 h1:zyFWf1/F3eiNG0xM5lz83P6F6NNp8aUALaq/wg2pNRk= | ||
github.com/marusama/semaphore v0.0.0-20181027083059-edd5217b5829/go.mod h1:TmeOqAKoDinfPfSohs14CO3VcEf7o+Bem6JiNe05yrQ= | ||
github.com/sherifabdlnaby/semaphore v0.0.0-20190117073948-fc3e9b0e3834 h1:ypyWj+fYiu70Hwdgvc8LIe/2ZvirUwvoFash4cpcGcU= | ||
github.com/sherifabdlnaby/semaphore v0.0.0-20190117073948-fc3e9b0e3834/go.mod h1:6q3c9bS2amkllnRxGuIHqiXCpe/z/lSJlNvfQb7tCNE= |
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