Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for pinnerGetPtr (0.09 sec)

  1. src/runtime/pinner.go

    			SetFinalizer(p.pinner, func(i *pinner) {
    				if len(i.refs) != 0 {
    					i.unpin() // only required to make the test idempotent
    					pinnerLeakPanic()
    				}
    			})
    		}
    	}
    	ptr := pinnerGetPtr(&pointer)
    	if setPinned(ptr, true) {
    		p.refs = append(p.refs, ptr)
    	}
    }
    
    // Unpin unpins all pinned objects of the [Pinner].
    func (p *Pinner) Unpin() {
    	p.pinner.unpin()
    
    	mp := acquirem()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 04 14:29:45 UTC 2024
    - 11K bytes
    - Viewed (0)
Back to top