Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 344 for usleep (0.17 sec)

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

    // #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;
    //   nts = argc;
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Fri Jul 28 21:31:41 GMT 2023
    - 7.5K bytes
    - Viewed (0)
  2. cmd/data-scanner.go

    	t := time.Now()
    	return func() {
    		doneAt := time.Now()
    		d.Sleep(ctx, doneAt.Sub(t))
    	}
    }
    
    // Sleep sleeps the specified time multiplied by the sleep factor.
    // If the factor is updated the sleep will be done again with the new factor.
    func (d *dynamicSleeper) Sleep(ctx context.Context, base time.Duration) {
    	for {
    		// Grab current values
    		d.mu.RLock()
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Mon Apr 22 17:49:30 GMT 2024
    - 47.4K bytes
    - Viewed (0)
  3. ci/official/utilities/setup_docker.sh

    if [[ "$TFCI_DOCKER_PULL_ENABLE" == 1 ]]; then
      # Simple retry logic for docker-pull errors. Sleeps for 15s if a pull fails.
      # Pulling an already-pulled container image will finish instantly, so
      # repeating the command costs nothing.
      docker pull "$TFCI_DOCKER_IMAGE" || sleep 15
      docker pull "$TFCI_DOCKER_IMAGE" || sleep 15
      docker pull "$TFCI_DOCKER_IMAGE"
    fi 
    
    if [[ "$TFCI_DOCKER_REBUILD_ENABLE" == 1 ]]; then
    Shell Script
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Fri Jan 26 15:27:59 GMT 2024
    - 1.8K bytes
    - Viewed (0)
  4. internal/config/heal/heal.go

    	"github.com/minio/pkg/v2/env"
    )
    
    // Compression environment variables
    const (
    	Bitrot       = "bitrotscan"
    	Sleep        = "max_sleep"
    	IOCount      = "max_io"
    	DriveWorkers = "drive_workers"
    
    	EnvBitrot       = "MINIO_HEAL_BITROTSCAN"
    	EnvSleep        = "MINIO_HEAL_MAX_SLEEP"
    	EnvIOCount      = "MINIO_HEAL_MAX_IO"
    	EnvDriveWorkers = "MINIO_HEAL_DRIVE_WORKERS"
    )
    
    var configMutex sync.RWMutex
    
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Apr 11 01:10:30 GMT 2024
    - 4.9K bytes
    - Viewed (0)
  5. docs/site-replication/run-multi-site-minio-idp.sh

    sleep 5
    
    ./mc admin user info minio2 foobar
    
    ./mc admin group info minio1 foobar-g
    
    ./mc admin policy create minio1 rw ./docs/site-replication/rw.json
    
    sleep 5
    ./mc admin policy info minio2 rw >/dev/null 2>&1
    
    ./mc admin replicate status minio1
    
    ## Add a new empty site
    ./mc admin replicate add minio1 minio2 minio3
    
    sleep 10
    
    Shell Script
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Mar 07 00:19:24 GMT 2024
    - 11.9K bytes
    - Viewed (0)
  6. docs/site-replication/run-multi-site-ldap.sh

    site3_pid=$!
    
    sleep 10
    
    export MC_HOST_minio1=http://minio:minio123@localhost:9001
    export MC_HOST_minio2=http://minio:minio123@localhost:9002
    export MC_HOST_minio3=http://minio:minio123@localhost:9003
    
    ./mc admin replicate add minio1 minio2 minio3
    
    ./mc idp ldap policy attach minio1 consoleAdmin --user="uid=dillon,ou=people,ou=swengg,dc=min,dc=io"
    sleep 5
    
    Shell Script
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Wed Feb 14 04:51:23 GMT 2024
    - 10K bytes
    - Viewed (1)
  7. docs/bucket/replication/setup_3site_replication.sh

    sleep 1
    
    echo "Set default governance retention 30d"
    ./mc retention set --default governance 30d sitea/olockbucket
    
    echo "Copying data to source sitea/bucket"
    ./mc cp --enc-s3 "sitea/" --quiet /etc/hosts sitea/bucket
    sleep 1
    
    echo "Copying data to source sitea/olockbucket"
    ./mc cp --quiet /etc/hosts sitea/olockbucket
    sleep 1
    
    Shell Script
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Tue Apr 23 17:15:52 GMT 2024
    - 10.2K bytes
    - Viewed (0)
  8. internal/dsync/dsync_test.go

    	// fmt.Println("Lock acquired, waiting...")
    	time.Sleep(testDrwMutexRefreshCallTimeout)
    
    	dm.Unlock(context.Background())
    }
    
    func TestSimpleLockUnlockMultipleTimes(t *testing.T) {
    	dm := NewDRWMutex(ds, "test")
    
    	dm.Lock(id, source)
    	time.Sleep(time.Duration(10+(rand.Float32()*50)) * time.Millisecond)
    	dm.Unlock(context.Background())
    
    	dm.Lock(id, source)
    	time.Sleep(time.Duration(10+(rand.Float32()*50)) * time.Millisecond)
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Sat Dec 24 03:49:07 GMT 2022
    - 11K bytes
    - Viewed (0)
  9. docs/bucket/replication/setup_2site_existing_replication.sh

    	--remote-bucket http://minio:minio123@127.0.0.1:9004/bucket
    
    remote_arn=$(./mc replicate ls sitea/bucket --json | jq -r .rule.Destination.Bucket)
    sleep 1
    
    ./mc replicate resync start sitea/bucket/ --remote-bucket "${remote_arn}"
    sleep 30s ## sleep for 30s idea is that we give 300ms per object.
    
    ./mc ls -r --versions sitea/bucket >/tmp/sitea.txt
    ./mc ls -r --versions siteb/bucket >/tmp/siteb.txt
    
    Shell Script
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Mon Mar 04 18:05:56 GMT 2024
    - 5.6K bytes
    - Viewed (0)
  10. docs/site-replication/run-multi-site-oidc.sh

    		chmod +x mc
    fi
    
    sleep 10
    
    export MC_HOST_minio1=http://minio:minio123@localhost:9001
    export MC_HOST_minio2=http://minio:minio123@localhost:9002
    export MC_HOST_minio3=http://minio:minio123@localhost:9003
    
    ./mc admin replicate add minio1 minio2 minio3
    
    ./mc admin policy create minio1 projecta ./docs/site-replication/rw.json
    sleep 5
    
    ./mc admin policy info minio2 projecta >/dev/null 2>&1
    Shell Script
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Mon Feb 26 21:30:28 GMT 2024
    - 8.4K bytes
    - Viewed (0)
Back to top