Search Options

Results per page
Sort
Preferred Languages
Advance

Results 91 - 100 of 612 for Forked (0.14 sec)

  1. internal/lock/lock_windows.go

    	//
    	// The MSDN docs appear to say that a normal path that is 248 bytes long
    	// will work; empirically the path must be less then 248 bytes long.
    	if len(path) < 248 {
    		// Don't fix. (This is how Go 1.7 and earlier worked,
    		// not automatically generating the \\?\ form)
    		return path
    	}
    
    	// The extended form begins with \\?\, as in
    	// \\?\c:\windows\foo.txt or \\?\UNC\server\share\foo.txt.
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Wed Oct 18 18:08:15 UTC 2023
    - 7.9K bytes
    - Viewed (0)
  2. src/internal/runtime/exithook/hooks.go

    }
    
    var (
    	locked  atomic.Int32
    	runGoid atomic.Uint64
    	hooks   []Hook
    	running bool
    
    	// runtime sets these for us
    	Gosched func()
    	Goid    func() uint64
    	Throw   func(string)
    )
    
    // Add adds a new exit hook.
    func Add(h Hook) {
    	for !locked.CompareAndSwap(0, 1) {
    		Gosched()
    	}
    	hooks = append(hooks, h)
    	locked.Store(0)
    }
    
    // Run runs the exit hooks.
    //
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 24 16:41:13 UTC 2024
    - 2.2K bytes
    - Viewed (0)
  3. platforms/core-runtime/files/src/test/groovy/org/gradle/api/internal/file/archive/impl/FileZipInputTest.groovy

        def "throws FileException when zip is badly formed"() {
            def file = temporaryFolder.file("badly-formed").createFile()
    
            when:
            FileZipInput.create(file)
    
            then:
            thrown(FileException)
        }
    
        // This documents current behaviour, not desired behaviour
        @Requires(UnitTestPreconditions.Jdk10OrEarlier)
        def "silently ignores zip that is badly formed"() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 08:55:52 UTC 2023
    - 3.4K bytes
    - Viewed (0)
  4. platforms/ide/ide/src/integTest/groovy/org/gradle/plugins/ide/eclipse/EclipseTestSourcesIntegrationTest.groovy

    class EclipseTestSourcesIntegrationTest extends AbstractEclipseTestSourcesIntegrationTest {
    
        @ToBeFixedForConfigurationCache
        def "source directories from main source sets are not marked with test classpath attribute"() {
            buildFile << """
                plugins {
                    id 'java'
                    id 'eclipse'
                }
            """
            file('src/main/java').mkdirs()
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 26 14:49:12 UTC 2023
    - 3.9K bytes
    - Viewed (0)
  5. src/runtime/testdata/testprog/lockosthread.go

    			os.Exit(1)
    		}
    		// Exit with the thread locked, which should exit the
    		// main thread.
    		ready <- true
    	}()
    	<-ready
    	time.Sleep(1 * time.Millisecond)
    	// Check that this goroutine is still running on a different
    	// thread.
    	if mainTID != 0 && gettid() == mainTID {
    		println("goroutine migrated to locked thread")
    		os.Exit(1)
    	}
    	println("OK")
    }
    
    func LockOSThreadAlt() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 21 20:00:09 UTC 2024
    - 6.6K bytes
    - Viewed (0)
  6. test/fixedbugs/bug455.go

    func main() {
    	test := newTest()
    
    	switch {
    	case test.
    		Test().
    		Test().
    		Test().
    		Test().
    		Test().
    		Test().
    		Test().
    		Test().
    		Test().
    		Test().
    		Result():
    		// case worked
    	default:
    		panic("Result returned false unexpectedly")
    	}
    }
    
    func (t *test_t) Test() test_i {
    	return t
    }
    
    func (t *test_t) Result() bool {
    	return true
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 02 13:43:18 UTC 2016
    - 777 bytes
    - Viewed (0)
  7. src/cmd/go/internal/lockedfile/internal/filelock/filelock.go

    	Stat() (fs.FileInfo, error)
    }
    
    // Lock places an advisory write lock on the file, blocking until it can be
    // locked.
    //
    // If Lock returns nil, no other process will be able to place a read or write
    // lock on the file until this process exits, closes f, or calls Unlock on it.
    //
    // If f's descriptor is already read- or write-locked, the behavior of Lock is
    // unspecified.
    //
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 17 02:24:35 UTC 2023
    - 2.6K bytes
    - Viewed (0)
  8. internal/lock/lock_test.go

    	}
    
    	// blocking on locked file
    	locked := make(chan struct{}, 1)
    	go func() {
    		bl, blerr := LockedOpenFile(f.Name(), os.O_WRONLY, 0o600)
    		if blerr != nil {
    			t.Error(blerr)
    			return
    		}
    		locked <- struct{}{}
    		if blerr = bl.Close(); blerr != nil {
    			t.Error(blerr)
    			return
    		}
    	}()
    
    	select {
    	case <-locked:
    		t.Error("unexpected unblocking")
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Sep 19 18:05:16 UTC 2022
    - 3.6K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/quantization/tensorflow/passes/mark_functions_noinline.cc

        return {*this, "noinline-functions",
                llvm::cl::desc(
                    "Name of the functions that should be marked "
                    "tf._noinline = true to prevent inlining. The name of the "
                    "function should exactly match to be marked noinline."),
                llvm::cl::list_init<std::string>(noinline_functions),
                llvm::cl::ZeroOrMore};
      }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Jan 18 02:52:57 UTC 2023
    - 4.5K bytes
    - Viewed (0)
  10. platforms/software/dependency-management/src/main/java/org/gradle/api/internal/artifacts/dsl/dependencies/DependencyLockingState.java

         *
         * If {@code true}, each locked dependency is added as a strict constraint,
         * and the resolution result must exactly match the set of locked dependencies.
         *
         * If {@code false}, each locked dependency is added a regular (lenient) constraint,
         * and the resolution result is not verified against the set of locked dependencies.
         *
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 1.9K bytes
    - Viewed (0)
Back to top