Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 475 for allDone (0.18 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. okhttp/src/main/kotlin/okhttp3/internal/connection/RealCall.kt

          this.connection?.incrementSuccessCount()
        }
    
        if (callDone) {
          return callDone(e)
        }
    
        return e
      }
    
      internal fun noMoreExchanges(e: IOException?): IOException? {
        var callDone = false
        this.withLock {
          if (expectMoreExchanges) {
            expectMoreExchanges = false
            callDone = !requestBodyOpen && !responseBodyOpen
          }
        }
    
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Sat Apr 20 17:03:43 UTC 2024
    - 17.9K bytes
    - Viewed (0)
  4. operator/cmd/mesh/testdata/manifest-generate/output/all_on.golden-show-in-gh-pull-request.yaml

    John Howard <******@****.***> 1704863403 -0800
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Jan 10 05:10:03 UTC 2024
    - 506.8K bytes
    - Viewed (0)
  5. src/cmd/go/internal/modfetch/proxy.go

    	}
    	var list []string
    	allLine := strings.Split(string(data), "\n")
    	for _, line := range allLine {
    		f := strings.Fields(line)
    		if len(f) >= 1 && semver.IsValid(f[0]) && strings.HasPrefix(f[0], prefix) && !module.IsPseudoVersion(f[0]) {
    			list = append(list, f[0])
    		}
    	}
    	p.listLatestOnce.Do(func() {
    		p.listLatest, p.listLatestErr = p.latestFromList(ctx, allLine)
    	})
    	semver.Sort(list)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Nov 03 15:21:05 UTC 2023
    - 13K bytes
    - Viewed (0)
  6. 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)
  7. 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)
  8. 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)
  9. 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)
  10. 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)
Back to top