Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 83 for allDone (0.11 sec)

  1. src/runtime/race/testdata/sync_test.go

    func TestRaceAnnounceThreads(t *testing.T) {
    	const N = 7
    	allDone := make(chan bool, N)
    
    	var x int
    	_ = x
    
    	var f, g, h func()
    	f = func() {
    		x = 1
    		go g()
    		go func() {
    			x = 1
    			allDone <- true
    		}()
    		x = 2
    		allDone <- true
    	}
    
    	g = func() {
    		for i := 0; i < 2; i++ {
    			go func() {
    				x = 1
    				allDone <- true
    			}()
    			allDone <- true
    		}
    	}
    
    	h = func() {
    		x = 1
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 10 15:05:17 UTC 2020
    - 3K bytes
    - Viewed (0)
  2. operator/cmd/mesh/testdata/manifest-generate/input/all_on.yaml

    John Howard <******@****.***> 1603485929 -0700
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Oct 23 20:45:29 UTC 2020
    - 387 bytes
    - Viewed (0)
  3. src/cmd/cgo/internal/test/issue1435.go

    // #include <unistd.h>
    // #include <sys/types.h>
    //
    // pthread_t *t = NULL;
    // pthread_mutex_t mu;
    // int nts = 0;
    // int all_done = 0;
    //
    // static void *aFn(void *vargp) {
    //   int done = 0;
    //   while (!done) {
    //     usleep(100);
    //     pthread_mutex_lock(&mu);
    //     done = all_done;
    //     pthread_mutex_unlock(&mu);
    //   }
    //   return NULL;
    // }
    //
    // void trial(int argc) {
    //   int i;
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jul 28 21:31:41 UTC 2023
    - 7.5K bytes
    - Viewed (0)
  4. docs_src/response_headers/tutorial002.py

    from fastapi import FastAPI, Response
    
    app = FastAPI()
    
    
    @app.get("/headers-and-object/")
    def get_headers(response: Response):
        response.headers["X-Cat-Dog"] = "alone in the world"
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Thu Mar 26 19:09:53 UTC 2020
    - 222 bytes
    - Viewed (0)
  5. docs_src/response_headers/tutorial001.py

    from fastapi import FastAPI
    from fastapi.responses import JSONResponse
    
    app = FastAPI()
    
    
    @app.get("/headers/")
    def get_headers():
        content = {"message": "Hello World"}
        headers = {"X-Cat-Dog": "alone in the world", "Content-Language": "en-US"}
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Thu Mar 26 19:09:53 UTC 2020
    - 309 bytes
    - Viewed (0)
  6. tests/test_tutorial/test_response_headers/test_tutorial002.py

    def test_path_operation():
        response = client.get("/headers-and-object/")
        assert response.status_code == 200, response.text
        assert response.json() == {"message": "Hello World"}
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Thu Jul 09 18:06:12 UTC 2020
    - 378 bytes
    - Viewed (0)
  7. tests/test_tutorial/test_response_headers/test_tutorial001.py

    
    def test_path_operation():
        response = client.get("/headers/")
        assert response.status_code == 200, response.text
        assert response.json() == {"message": "Hello World"}
        assert response.headers["X-Cat-Dog"] == "alone in the world"
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Thu Jul 09 18:06:12 UTC 2020
    - 426 bytes
    - Viewed (0)
  8. src/internal/types/testdata/fixedbugs/issue26390.go

    // Copyright 2018 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.
    
    // stand-alone test to ensure case is triggered
    
    package issue26390
    
    type A = T
    
    func (t *T) m() *A { return t }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 02 02:58:32 UTC 2022
    - 290 bytes
    - Viewed (0)
  9. src/net/tcpsockopt_windows.go

    	switch {
    	case idle < 0 && interval >= 0:
    		// Given that we can't set KeepAliveInterval alone, and this code path
    		// is new, it doesn't exist before, so we just return an error.
    		return syscall.WSAENOPROTOOPT
    	case idle >= 0 && interval < 0:
    		// Although we can't set KeepAliveTime alone either, this existing code
    		// path had been backing up [SetKeepAlivePeriod] which used to be set both
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 21 11:49:35 UTC 2024
    - 3.8K bytes
    - Viewed (0)
  10. src/internal/types/testdata/fixedbugs/issue39680.go

    // Copyright 2020 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 p
    
    // Embedding stand-alone type parameters is not permitted for now. Disabled.
    
    /*
    import "fmt"
    
    // Minimal test case.
    func _[T interface{~T}](x T) T{
    	return x
    }
    
    // Test case from issue.
    type constr[T any] interface {
    	~T
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 02 02:58:32 UTC 2022
    - 533 bytes
    - Viewed (0)
Back to top