Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for testBlocking (0.24 sec)

  1. src/cmd/cgo/internal/test/cgo_test.go

    func Test49633(t *testing.T)                 { test49633(t) }
    func TestAlign(t *testing.T)                 { testAlign(t) }
    func TestAtol(t *testing.T)                  { testAtol(t) }
    func TestBlocking(t *testing.T)              { testBlocking(t) }
    func TestBoolAlign(t *testing.T)             { testBoolAlign(t) }
    func TestCallGoWithString(t *testing.T)      { testCallGoWithString(t) }
    func TestCallback(t *testing.T)              { testCallback(t) }
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Wed May 17 21:53:11 GMT 2023
    - 6.4K bytes
    - Viewed (0)
  2. src/main/java/jcifs/smb1/smb1/TestLocking.java

        }
    
        public static void main(String[] args) throws Exception
        {
            if (args.length < 1) {
                System.err.println("usage: TestLocking [-t <numThreads>] [-i <numIter>] [-d <delay>] url");
                System.exit(1);
            }
    
            TestLocking t = new TestLocking();
            t.ltime = System.currentTimeMillis();
    
            for (int ai = 0; ai < args.length; ai++) {
                if (args[ai].equals("-t")) {
    Java
    - Registered: Sun Apr 28 00:10:09 GMT 2024
    - Last Modified: Fri Mar 22 21:10:40 GMT 2019
    - 3.4K bytes
    - Viewed (0)
  3. src/cmd/cgo/internal/test/callback.go

    	x := 1
    	for i := 0; i < 10000; i++ {
    		// variadic call mallocs + writes to
    		variadic(x, x, x)
    		if x != 1 {
    			panic("bad x")
    		}
    	}
    }
    
    func variadic(x ...interface{}) {}
    
    func testBlocking(t *testing.T) {
    	c := make(chan int)
    	go func() {
    		for i := 0; i < 10; i++ {
    			c <- <-c
    		}
    	}()
    	nestedCall(func() {
    		for i := 0; i < 10; i++ {
    			c <- i
    			if j := <-c; j != i {
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Fri May 12 12:00:02 GMT 2023
    - 111.5K bytes
    - Viewed (0)
  4. clause/locking_test.go

    package clause_test
    
    import (
    	"fmt"
    	"testing"
    
    	"gorm.io/gorm/clause"
    )
    
    func TestLocking(t *testing.T) {
    	results := []struct {
    		Clauses []clause.Interface
    		Result  string
    		Vars    []interface{}
    	}{
    		{
    			[]clause.Interface{clause.Select{}, clause.From{}, clause.Locking{Strength: clause.LockingStrengthUpdate}},
    			"SELECT * FROM `users` FOR UPDATE", nil,
    		},
    		{
    Go
    - Registered: Sun Apr 28 09:35:09 GMT 2024
    - Last Modified: Fri Dec 15 08:32:56 GMT 2023
    - 1.2K bytes
    - Viewed (0)
Back to top