mirror of
https://github.com/logos-storage/nim-datastore.git
synced 2026-01-03 14:13:09 +00:00
add nextSignal using mutex
This commit is contained in:
parent
e571d2116a
commit
3cc21b3a59
@ -24,7 +24,7 @@ import ./querycommontests
|
||||
|
||||
const
|
||||
NumThreads = 20 # IO threads aren't attached to CPU count
|
||||
ThreadTestLoops {.intdefine.} = 100
|
||||
ThreadTestLoops {.intdefine.} = 1000
|
||||
N = ThreadTestLoops
|
||||
|
||||
for i in 1..N:
|
||||
@ -60,9 +60,6 @@ for i in 1..N:
|
||||
sqlStore = newSQLiteBackend[KeyId, DataBuffer](Memory).tryGet()
|
||||
taskPool = Taskpool.new(NumThreads)
|
||||
ds = ThreadDatastore.new(sqlStore, tp = taskPool).tryGet()
|
||||
key = Key.init("/a/b").tryGet()
|
||||
bytes = "some bytes".toBytes
|
||||
otherBytes = "some other bytes".toBytes
|
||||
|
||||
setup:
|
||||
sqlStore = newSQLiteBackend[KeyId, DataBuffer](Memory).tryGet()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user