Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 252 for Cas (0.02 sec)

  1. docs/fr/docs/tutorial/debugging.md

    Cela ne se produira pas si vous importez ce module (fichier).
    
    Par exemple, si vous avez un autre fichier `importer.py` qui contient :
    
    ```Python
    from myapp import app
    
    # Code supplémentaire
    ```
    
    dans ce cas, la variable automatique `__name__` à l'intérieur de `myapp.py` n'aura pas la valeur `"__main__"`.
    
    Ainsi, la ligne :
    
    ```Python
        uvicorn.run(app, host="0.0.0.0", port=8000)
    ```
    
    ne sera pas exécutée.
    
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Mon Mar 06 16:26:49 UTC 2023
    - 2.9K bytes
    - Viewed (0)
  2. src/unicode/letter_test.go

    	}
    	return "ErrorCase"
    }
    
    func TestTo(t *testing.T) {
    	for _, c := range caseTest {
    		r := To(c.cas, c.in)
    		if c.out != r {
    			t.Errorf("To(U+%04X, %s) = U+%04X want U+%04X", c.in, caseString(c.cas), r, c.out)
    		}
    	}
    }
    
    func TestToUpperCase(t *testing.T) {
    	for _, c := range caseTest {
    		if c.cas != UpperCase {
    			continue
    		}
    		r := ToUpper(c.in)
    		if c.out != r {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Sep 09 01:46:03 UTC 2023
    - 14.8K bytes
    - Viewed (0)
  3. src/internal/runtime/atomic/atomic_arm64.s

    // license that can be found in the LICENSE file.
    
    #include "go_asm.h"
    #include "textflag.h"
    
    TEXT ·Casint32(SB), NOSPLIT, $0-17
    	B	·Cas(SB)
    
    TEXT ·Casint64(SB), NOSPLIT, $0-25
    	B	·Cas64(SB)
    
    TEXT ·Casuintptr(SB), NOSPLIT, $0-25
    	B	·Cas64(SB)
    
    TEXT ·CasRel(SB), NOSPLIT, $0-17
    	B	·Cas(SB)
    
    TEXT ·Loadint32(SB), NOSPLIT, $0-12
    	B	·Load(SB)
    
    TEXT ·Loadint64(SB), NOSPLIT, $0-16
    	B	·Load64(SB)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 9K bytes
    - Viewed (0)
  4. cmd/config-dir.go

    	defaultMinioConfigDir = ".minio"
    
    	// Directory contains below files/directories for HTTPS configuration.
    	certsDir = "certs"
    
    	// Directory contains all CA certificates other than system defaults for HTTPS.
    	certsCADir = "CAs"
    
    	// Public certificate file for HTTPS.
    	publicCertFile = "public.crt"
    
    	// Private key file for HTTPS.
    	privateKeyFile = "private.key"
    )
    
    // ConfigDir - points to a user set directory.
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Sun Jan 02 17:15:06 UTC 2022
    - 3K bytes
    - Viewed (0)
  5. src/internal/runtime/atomic/atomic_mips64x.s

    // license that can be found in the LICENSE file.
    
    //go:build mips64 || mips64le
    
    #include "textflag.h"
    
    #define SYNC	WORD $0xf
    
    // bool cas(uint32 *ptr, uint32 old, uint32 new)
    // Atomically:
    //	if(*val == old){
    //		*val = new;
    //		return 1;
    //	} else
    //		return 0;
    TEXT ·Cas(SB), NOSPLIT, $0-17
    	MOVV	ptr+0(FP), R1
    	MOVW	old+8(FP), R2
    	MOVW	new+12(FP), R5
    	SYNC
    cas_again:
    	MOVV	R5, R3
    	LL	(R1), R4
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat May 11 21:29:34 UTC 2024
    - 7.2K bytes
    - Viewed (0)
  6. src/internal/runtime/atomic/atomic_riscv64.s

    // with ARM, which uses dmb ishst.)
    
    #include "textflag.h"
    
    // func Cas(ptr *uint64, old, new uint64) bool
    // Atomically:
    //      if(*val == old){
    //              *val = new;
    //              return 1;
    //      } else {
    //              return 0;
    //      }
    TEXT ·Cas(SB), NOSPLIT, $0-17
    	MOV	ptr+0(FP), A0
    	MOVW	old+8(FP), A1
    	MOVW	new+12(FP), A2
    cas_again:
    	LRW	(A0), A3
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 7K bytes
    - Viewed (0)
  7. guava/src/com/google/common/util/concurrent/AggregateFutureState.java

         * approach would be for each caller CAS it from null to a Set populated with its exception. But
         * there's another race: If the first thread fails with an exception and a second thread
         * immediately fails with the same exception:
         *
         * Thread1: calls setException(), which returns true, context switch before it can CAS
         * seenExceptions to its exception
         *
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue May 28 20:40:51 UTC 2024
    - 8.4K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/util/concurrent/AggregateFutureState.java

         * approach would be for each caller CAS it from null to a Set populated with its exception. But
         * there's another race: If the first thread fails with an exception and a second thread
         * immediately fails with the same exception:
         *
         * Thread1: calls setException(), which returns true, context switch before it can CAS
         * seenExceptions to its exception
         *
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue May 28 20:40:51 UTC 2024
    - 8.4K bytes
    - Viewed (0)
  9. src/internal/runtime/atomic/atomic_s390x.s

    TEXT ·StorepNoWB(SB), NOSPLIT, $0
    	MOVD	ptr+0(FP), R2
    	MOVD	val+8(FP), R3
    	MOVD	R3, 0(R2)
    	SYNC
    	RET
    
    // func Cas(ptr *uint32, old, new uint32) bool
    // Atomically:
    //	if *ptr == old {
    //		*val = new
    //		return 1
    //	} else {
    //		return 0
    //	}
    TEXT ·Cas(SB), NOSPLIT, $0-17
    	MOVD	ptr+0(FP), R3
    	MOVWZ	old+8(FP), R4
    	MOVWZ	new+12(FP), R5
    	CS	R4, R5, 0(R3)    //  if (R4 == 0(R3)) then 0(R3)= R5
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 7.1K bytes
    - Viewed (0)
  10. src/internal/runtime/atomic/bench_test.go

    			atomic.Xadd64(ptr, 1)
    		}
    	})
    }
    
    func BenchmarkCas(b *testing.B) {
    	var x uint32
    	x = 1
    	ptr := &x
    	b.RunParallel(func(pb *testing.PB) {
    		for pb.Next() {
    			atomic.Cas(ptr, 1, 0)
    			atomic.Cas(ptr, 0, 1)
    		}
    	})
    }
    
    func BenchmarkCas64(b *testing.B) {
    	var x uint64
    	x = 1
    	ptr := &x
    	b.RunParallel(func(pb *testing.PB) {
    		for pb.Next() {
    			atomic.Cas64(ptr, 1, 0)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 3.2K bytes
    - Viewed (0)
Back to top