make initContextResources private

This commit is contained in:
Ivan FB 2026-05-12 09:25:20 +02:00
parent 7a0c04dea5
commit f44a112c88
No known key found for this signature in database
GPG Key ID: DF0C67A04C543270

View File

@ -317,7 +317,7 @@ proc cleanUpResources[T](ctx: ptr FFIContext[T]): Result[void, string] =
?ctx.threadExitSignal.close()
return ok()
proc initContextResources*[T](ctx: ptr FFIContext[T]): Result[void, string] =
proc initContextResources[T](ctx: ptr FFIContext[T]): Result[void, string] =
## Initialises all resources inside an already-allocated FFIContext slot.
## On failure every partially-initialised resource is closed; the caller
## is responsible for releasing the slot (freeShared or pool.releaseSlot).