Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for SetFinalizer (0.54 sec)

  1. misc/cgo/gmp/gmp.go

    have pointers into the C world and to free those pointers when they
    are no longer needed.  To help, the Go code can define Go objects
    holding the C pointers and use runtime.SetFinalizer on those Go objects.
    
    It is much more difficult for the C world to have pointers into the Go
    world, because the Go garbage collector is unaware of the memory
    allocated by C.  The most important consideration is not to
    Registered: Tue Sep 09 11:13:09 UTC 2025
    - Last Modified: Mon Apr 11 16:34:30 UTC 2022
    - 9.5K bytes
    - Viewed (0)
  2. doc/go_mem.html

    </p>
    
    <h3 id="finalizer">Finalizers</h3>
    
    <p>
    The <a href="/pkg/runtime/"><code>runtime</code></a> package provides
    a <code>SetFinalizer</code> function that adds a finalizer to be called when
    a particular object is no longer reachable by the program.
    A call to <code>SetFinalizer(x, f)</code> is synchronized before the finalization call <code>f(x)</code>.
    </p>
    
    <h3 id="more">Additional Mechanisms</h3>
    
    <p>
    Registered: Tue Sep 09 11:13:09 UTC 2025
    - Last Modified: Tue Aug 05 15:41:37 UTC 2025
    - 26.6K bytes
    - Viewed (0)
  3. api/go1.txt

    pkg runtime, func NumCPU() int
    pkg runtime, func NumCgoCall() int64
    pkg runtime, func NumGoroutine() int
    pkg runtime, func ReadMemStats(*MemStats)
    pkg runtime, func SetCPUProfileRate(int)
    pkg runtime, func SetFinalizer(interface{}, interface{})
    pkg runtime, func Stack([]uint8, bool) int
    pkg runtime, func ThreadCreateProfile([]StackRecord) (int, bool)
    pkg runtime, func UnlockOSThread()
    pkg runtime, func Version() string
    Registered: Tue Sep 09 11:13:09 UTC 2025
    - Last Modified: Wed Aug 14 18:58:28 UTC 2013
    - 1.7M bytes
    - Viewed (0)
Back to top