Clean out sharedtables (#14858)
Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
This commit is contained in:
parent
a519f3b038
commit
05384efec5
2 changed files with 1 additions and 10 deletions
|
|
@ -185,6 +185,7 @@ proc mydiv(a, b): int {.raises: [].} =
|
||||||
|
|
||||||
- Added the `thiscall` calling convention as specified by Microsoft, mostly for hooking purpose
|
- Added the `thiscall` calling convention as specified by Microsoft, mostly for hooking purpose
|
||||||
- Deprecated `{.unroll.}` pragma, was ignored by the compiler anyways, was a nop.
|
- Deprecated `{.unroll.}` pragma, was ignored by the compiler anyways, was a nop.
|
||||||
|
- Remove `sharedtables.initSharedTable`, was deprecated and produces undefined behavior.
|
||||||
- Removed `asyncdispatch.newAsyncNativeSocket`, was deprecated since `0.18`.
|
- Removed `asyncdispatch.newAsyncNativeSocket`, was deprecated since `0.18`.
|
||||||
- Remove `dom.releaseEvents` and `dom.captureEvents`, was deprecated.
|
- Remove `dom.releaseEvents` and `dom.captureEvents`, was deprecated.
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -225,13 +225,3 @@ proc init*[A, B](t: var SharedTable[A, B], initialSize = 64) =
|
||||||
proc deinitSharedTable*[A, B](t: var SharedTable[A, B]) =
|
proc deinitSharedTable*[A, B](t: var SharedTable[A, B]) =
|
||||||
deallocShared(t.data)
|
deallocShared(t.data)
|
||||||
deinitLock t.lock
|
deinitLock t.lock
|
||||||
|
|
||||||
proc initSharedTable*[A, B](initialSize = 64): SharedTable[A, B] {.deprecated:
|
|
||||||
"use 'init' instead".} =
|
|
||||||
## This is not posix compliant, may introduce undefined behavior.
|
|
||||||
assert isPowerOfTwo(initialSize)
|
|
||||||
result.counter = 0
|
|
||||||
result.dataLen = initialSize
|
|
||||||
result.data = cast[KeyValuePairSeq[A, B]](allocShared0(
|
|
||||||
sizeof(KeyValuePair[A, B]) * initialSize))
|
|
||||||
initLock result.lock
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue