Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 101 for lifo (0.06 sec)

  1. src/sync/runtime.go

    // the reason for waiting in a backtrace, and is used to compute some metrics.
    // Otherwise they're functionally identical.
    func runtime_SemacquireMutex(s *uint32, lifo bool, skipframes int)
    func runtime_SemacquireRWMutexR(s *uint32, lifo bool, skipframes int)
    func runtime_SemacquireRWMutex(s *uint32, lifo bool, skipframes int)
    
    // Semrelease atomically increments *s and notifies a waiting goroutine
    // if one is blocked in Semacquire.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 16 16:32:27 UTC 2022
    - 2.3K bytes
    - Viewed (0)
  2. src/runtime/lfstack_test.go

    	node = toMyNode(LFStackPop(stack))
    	if node == nil {
    		t.Fatalf("stack is empty")
    	}
    	if node.data != 43 {
    		t.Fatalf("no lifo")
    	}
    
    	// Pop another.
    	node = toMyNode(LFStackPop(stack))
    	if node == nil {
    		t.Fatalf("stack is empty")
    	}
    	if node.data != 42 {
    		t.Fatalf("no lifo")
    	}
    
    	// Check the stack is empty again.
    	if LFStackPop(stack) != nil {
    		t.Fatalf("stack is not empty")
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Nov 17 23:12:04 UTC 2022
    - 2.7K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/ssa/layout.go

    	posdegree := f.newSparseSet(f.NumBlocks()) // blocks with positive remaining degree
    	defer f.retSparseSet(posdegree)
    	// blocks with zero remaining degree. Use slice to simulate a LIFO queue to implement
    	// the depth-first topology sorting algorithm.
    	var zerodegree []ID
    	// LIFO queue. Track the successor blocks of the scheduled block so that when we
    	// encounter loops, we choose to schedule the successor block of the most recently
    	// scheduled block.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Oct 31 21:41:20 UTC 2022
    - 5K bytes
    - Viewed (0)
  4. tests/util/leak/check.go

    // Check adds a check to a test to ensure there are no leaked goroutines
    // To use, simply call leak.Check(t) at the start of a test; Do not call it in defer.
    // It is recommended to call this as the first step, as Cleanup is called in LIFO order; this ensures any
    // Cleanup's called in the test happen first.
    // Any existing goroutines before the test starts are filtered out. This ensures a single test failing doesn't
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Dec 20 10:22:38 UTC 2023
    - 6.9K bytes
    - Viewed (0)
  5. src/vendor/golang.org/x/net/lif/link.go

    		}
    		b := make([]byte, lifn.Count*sizeofLifreq)
    		lifc.Family = uint16(ep.af)
    		lifc.Len = lifn.Count * sizeofLifreq
    		if len(lifc.Lifcu) == 8 {
    			nativeEndian.PutUint64(lifc.Lifcu[:], uint64(uintptr(unsafe.Pointer(&b[0]))))
    		} else {
    			nativeEndian.PutUint32(lifc.Lifcu[:], uint32(uintptr(unsafe.Pointer(&b[0]))))
    		}
    		ioc = int64(syscall.SIOCGLIFCONF)
    		if err := ioctl(ep.s, uintptr(ioc), unsafe.Pointer(&lifc)); err != nil {
    			continue
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 3.7K bytes
    - Viewed (0)
  6. src/cmd/cgo/internal/testplugin/testdata/issue25756/plugin/life.go

    // Copyright 2010 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package main
    
    // #include "life.h"
    import "C"
    
    import "unsafe"
    
    func Run(gen, x, y int, a []int32) {
    	n := make([]int32, x*y)
    	for i := 0; i < gen; i++ {
    		C.Step(C.int(x), C.int(y), (*C.int)(unsafe.Pointer(&a[0])), (*C.int)(unsafe.Pointer(&n[0])))
    		copy(a, n)
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 11:59:56 UTC 2023
    - 889 bytes
    - Viewed (0)
  7. src/cmd/cgo/internal/testlife/testdata/c-life.c

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    #include <assert.h>
    #include "life.h"
    #include "_cgo_export.h"
    
    const int MYCONST = 0;
    
    // Do the actual manipulation of the life board in C.  This could be
    // done easily in Go, we are just using C for demonstration
    // purposes.
    void
    Step(int x, int y, int *a, int *n)
    {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 11:59:56 UTC 2023
    - 1.4K bytes
    - Viewed (0)
  8. src/cmd/cgo/internal/testlife/testdata/life.go

    // Copyright 2010 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package cgolife
    
    // #include "life.h"
    import "C"
    
    import "unsafe"
    
    func Run(gen, x, y int, a []int32) {
    	n := make([]int32, x*y)
    	for i := 0; i < gen; i++ {
    		C.Step(C.int(x), C.int(y), (*C.int)(unsafe.Pointer(&a[0])), (*C.int)(unsafe.Pointer(&n[0])))
    		copy(a, n)
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 11:59:56 UTC 2023
    - 892 bytes
    - Viewed (0)
  9. src/vendor/golang.org/x/net/lif/lif.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    //go:build solaris
    
    // Package lif provides basic functions for the manipulation of
    // logical network interfaces and interface addresses on Solaris.
    //
    // The package supports Solaris 11 or above.
    package lif
    
    import (
    	"syscall"
    )
    
    type endpoint struct {
    	af int
    	s  uintptr
    }
    
    func (ep *endpoint) close() error {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 950 bytes
    - Viewed (0)
  10. src/cmd/cgo/internal/testplugin/testdata/issue25756/plugin/c-life.c

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    #include <assert.h>
    #include "life.h"
    #include "_cgo_export.h"
    
    const int MYCONST = 0;
    
    // Do the actual manipulation of the life board in C.  This could be
    // done easily in Go, we are just using C for demonstration
    // purposes.
    void
    Step(int x, int y, int *a, int *n)
    {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 11:59:56 UTC 2023
    - 1.4K bytes
    - Viewed (0)
Back to top