You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The cgos-rs lifetime 'library is currently used to make sure that any cgos-rs object cannot live past the time when the underlying libcgos is uninitialized (function CgosLibUninitialize). In cgos-rs, this is done when any Congatec object is dropped.
However if in cgos-rs, if CgosLibUninitialize is never called, then this lifetime would no longer need to be tracked. The CGOS API docs state that the only reason to unitialize libcgos is to reclaim memory, however I suspect that there are very few users who are so memory constrained that they need to deallocate it.
This effects of this change would be:
The lifetime 'library would be removed from codebase.
Since the purpose of the Congatec struct is solely to track the lifetime of libcgos, it would no longer need to exist. Board::new would be modified to query whether libcgos was already initialized (CgosLibIsAvailable) and then initialize it if necessary (CgosLibInitialize)
The text was updated successfully, but these errors were encountered:
The cgos-rs lifetime
'library
is currently used to make sure that any cgos-rs object cannot live past the time when the underlying libcgos is uninitialized (functionCgosLibUninitialize
). In cgos-rs, this is done when anyCongatec
object is dropped.However if in cgos-rs, if
CgosLibUninitialize
is never called, then this lifetime would no longer need to be tracked. The CGOS API docs state that the only reason to unitialize libcgos is to reclaim memory, however I suspect that there are very few users who are so memory constrained that they need to deallocate it.This effects of this change would be:
'library
would be removed from codebase.Congatec
struct is solely to track the lifetime of libcgos, it would no longer need to exist.Board::new
would be modified to query whether libcgos was already initialized (CgosLibIsAvailable
) and then initialize it if necessary (CgosLibInitialize
)The text was updated successfully, but these errors were encountered: