add threadid

This commit is contained in:
Jaremy Creechley 2023-08-24 21:19:59 -07:00
parent 591b7f1fd4
commit 790b8449bd
No known key found for this signature in database
GPG Key ID: 4E66FB67B21D3300
2 changed files with 4 additions and 1 deletions

View File

@ -85,6 +85,7 @@ proc newSharedDataStore*(
res[].signal = ThreadSignalPtr.new().valueOr:
return failure newException(DatastoreError, "error creating signal")
echo "\nnewDataStore: threadId:", getThreadId()
res.createThreadDatastore(backend)
await wait(res[].signal)
res[].signal.close()

View File

@ -75,7 +75,9 @@ proc startupDatastore(
count: TestPtr,
) {.raises: [].} =
## starts up a FS instance on a give thread
echo "\n\nstartupDatastore: ret:\n", ret.repr
echo "\n"
echo "\nstartupDatastore: threadId:", getThreadId()
echo "\nstartupDatastore: ret:\n", ret.repr
echo "\nstartupDatastore: backend:\n", backend.repr
echo "\nstartupDatastore: count:\n", count.repr