Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for checknonempty (0.26 sec)

  1. src/runtime/mgcwork.go

    //
    //go:nowritebarrier
    func putfull(b *workbuf) {
    	b.checknonempty()
    	work.full.push(&b.node)
    }
    
    // trygetfull tries to get a full or partially empty workbuffer.
    // If one is not immediately available return nil.
    //
    //go:nowritebarrier
    func trygetfull() *workbuf {
    	b := (*workbuf)(work.full.pop())
    	if b != nil {
    		b.checknonempty()
    		return b
    	}
    	return b
    }
    
    //go:nowritebarrier
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 12.9K bytes
    - Viewed (0)
Back to top