Skip to content

Commit 98c6de2

Browse files
authored
add warning in objectpool
1 parent ef34db5 commit 98c6de2

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,10 @@ finally
7676
}
7777
```
7878

79-
**WARNING: You must call `SetLength(0)` at first, and call `Return(stm)` in the end for preventing memory leak.**
79+
#### WARNING
80+
81+
* **You must call `SetLength(0)` at first, and call `Return(stm)` in the end for preventing memory leak.**
82+
* **`PooledMemoryStream` is not threadsafe, so you must not share instance across threads**
8083

8184
# Micro benchmark result(powered by [BenchmarkDotNet](http://benchmarkdotnet.org/))
8285

0 commit comments

Comments
 (0)