Closed gruelingpine185 closed 11 months ago
You don't have to call volkFinalize as the only "resource" here is the DLL loaded into the process space and it will be unloaded upon process exit. But if you want to do an early teardown for some reason, it's provided. I'll add it to readme.
Awesome. Thanks so much
This is interesting... you expose several functions such as
volkInitialize()
andvolkLoadInstance()
and a few other functions. The ones I explicitly mentioned have a place on the README where a brief usage example utilizes them. Usually libraries and APIs would expose functions likeinit_xyz()
orcreate_xyz()
, and they will have their own termination functions likedeinit_xyz()
anddestroy_xyz()
. The README has no mention such, but upon looking into the volk header file I foundvolkFinalize()
- which thanks to the comment above it - allows me to draw the conclusion that this is the termination function ofvolkInitialize()
.It's exposed in the header file, so I'd assume it is for users of Volk to call (and volk.c doesn't seem to call it), but sometimes this isn't always the case. The tests that reside in
test/
don't call thevolkFinalize()
and neither do the projects that I found that use Volk. My question is: Should I be callingvolkFinalize()
? and when?It would be appreciated if the comments on each function can reflect its usage. Say, the comment can add:
You know?