Anuraag Agrawal
a834359079
Update docs
2022-11-04 19:53:12 +01:00
Anuraag Agrawal
29f8d22a2d
sync: implement simple pooling in sync.Pool
2022-11-04 19:53:12 +01:00
Tim Schaub
623dd6a815
sync: implement map.LoadAndDelete
2022-09-02 11:48:01 +02:00
Nia Waldvogel
38305399a3
sync: add tests
2021-12-22 11:02:45 +01:00
Nia Waldvogel
f21fdd1f76
sync: add a package doc
2021-12-20 13:35:57 -05:00
Nia Waldvogel
5e719b0d3d
sync: fix concurrent read-lock on write-locked RWMutex
...
This bug can be triggered by the following series of events:
A acquires a write lock
B starts waiting for a read lock
C starts waiting for a read lock
A releases the write lock
After this, both B and C are supposed to be resumed as a read-lock is available.
However, with the previous implementation, only C would be resumed immediately.
Other goroutines could immediately acquire the read lock, but B would not be resumed until C released the read lock.
2021-12-20 13:35:57 -05:00
Federico G. Schwindt
5b82125765
Add sync.NewCond
...
Required by net/http.
2021-06-01 15:02:11 +02:00
Cornel
720a54a0fe
extend stdlib to allow import of more packages ( #1099 )
...
* stdlib: extend stdlib to allow import of more packages
2020-06-23 11:56:28 +02:00
Jaden Weiss
c54e1cc955
sync: modify sync.Cond
2020-05-09 01:08:56 +02:00
Jaden Weiss
afc6bd5cdd
sync: add WaitGroup
2020-05-09 01:08:56 +02:00
Jaden Weiss
ccd79ee289
add sync.Cond
2020-05-09 01:08:56 +02:00
Jaden Weiss
171d0fe123
implement mutex blocking
2020-05-09 01:08:56 +02:00
Ayke van Laethem
67c242173c
sync: implement sync.Map
...
This is a very simple implementation, just enough to get packages to
compile.
2020-03-27 19:02:45 +01:00
Jaden Weiss
a2c7112b1f
properly handle nil New func in sync.Pool
2019-10-16 15:12:27 +02:00
Ayke van Laethem
7f60dd79ee
sync: implement dummy sync.Pool for fmt
2018-10-20 15:52:41 +02:00
Ayke van Laethem
c237633d34
all: use a custom sync package
...
The sync package is strongly tied to the runtime, so it's easier to
implement a new one. Besides, it's pretty big so it's better to replace
it.
2018-09-15 18:51:51 +02:00