Discover Packages
github.com/vbsw/golib/callback
package
module
Version:
v1.0.0
Opens a new window with list of versions in this module.
Published: May 8, 2022
License: BSL-1.0
Opens a new window with license information.
Imports: 0
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
README
¶
callback
About
callback is a package for Go to map objects to ids. This allows to manage callbacks from C to Go. It is published on https://github.com/vbsw/golib/callback and https://gitlab.com/vbsw/golib/callback .
Copyright
Copyright 2022, Vitali Baumtrok (vbsw@mailbox.org ).
callback is distributed under the Boost Software License, version 1.0. (See accompanying file LICENSE or copy at http://www.boost.org/LICENSE_1_0.txt )
callback is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the Boost Software License for more details.
References
Expand ▾
Collapse ▴
Documentation
¶
Package callback maps objects to ids. This allows to manage callbacks from C to Go.
Callback holds objects identified by ids.
New returns an instance of Callback.
Obj returns object identified by id.
Register returns a new id number for obj. obj will not be garbage collected until
Unregister is called with this id.
Unregister makes the object no more identified by id.
This object may be garbage collected, now.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.