Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for putThread (0.25 sec)

  1. android/guava/src/com/google/common/util/concurrent/AbstractFuture.java

         */
        Waiter(boolean unused) {}
    
        Waiter() {
          // avoid volatile write, write is made visible by subsequent CAS on waiters field
          ATOMIC_HELPER.putThread(this, Thread.currentThread());
        }
    
        // non-volatile write to the next field. Should be made visible by subsequent CAS on waiters
        // field.
        void setNext(@CheckForNull Waiter next) {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 22 21:17:24 GMT 2024
    - 63K bytes
    - Viewed (0)
  2. src/cmd/cgo/internal/test/cthread_unix.c

    		pthread_create(&thread_id[i], 0, addThread, &max);
    	for(i=0; i<nthread; i++)
    		pthread_join(thread_id[i], 0);		
    }
    
    static void*
    goDummyCallbackThread(void* p)
    {
    	int i, max;
    
    	max = *(int*)p;
    	for(i=0; i<max; i++)
    		goDummy();
    	return NULL;
    }
    
    int
    callGoInCThread(int max)
    {
    	pthread_t thread;
    
    	if (pthread_create(&thread, NULL, goDummyCallbackThread, (void*)(&max)) != 0)
    		return -1;
    C
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Wed May 17 21:53:11 GMT 2023
    - 1K bytes
    - Viewed (0)
  3. src/cmd/cgo/internal/test/issue1435.go

    //   int i;
    //   nts = argc;
    //   t = calloc(nts, sizeof(pthread_t));
    //   pthread_mutex_init(&mu, NULL);
    //   for (i = 0; i < nts; i++) {
    //     pthread_create(&t[i], NULL, aFn, NULL);
    //   }
    // }
    //
    // void cleanup(void) {
    //   int i;
    //   pthread_mutex_lock(&mu);
    //   all_done = 1;
    //   pthread_mutex_unlock(&mu);
    //   for (i = 0; i < nts; i++) {
    //     pthread_join(t[i], NULL);
    //   }
    //   pthread_mutex_destroy(&mu);
    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)
  4. src/cmd/cgo/internal/test/issue18146.go

    // Copyright 2016 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.
    
    //go:build cgo && !windows
    
    // Issue 18146: pthread_create failure during syscall.Exec.
    
    package cgotest
    
    import (
    	"bytes"
    	"crypto/md5"
    	"os"
    	"os/exec"
    	"runtime"
    	"syscall"
    	"testing"
    	"time"
    )
    
    func test18146(t *testing.T) {
    	if testing.Short() {
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Tue Sep 05 23:35:32 GMT 2023
    - 2.8K bytes
    - Viewed (0)
  5. .github/ISSUE_TEMPLATE/00-bug.yml

            CGO_CFLAGS="-O2 -g"
            CGO_CPPFLAGS=""
            CGO_CXXFLAGS="-O2 -g"
            CGO_FFLAGS="-O2 -g"
            CGO_LDFLAGS="-O2 -g"
            PKG_CONFIG="pkg-config"
            GOGCCFLAGS="-fPIC -arch arm64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=/var/folders/44/nbbyll_10jd0z8rj_qxm43740000gn/T/go-build2331607515=/tmp/go-build -gno-record-gcc-switches -fno-common"
          render: shell
        validations:
    Others
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Thu Jan 04 23:31:17 GMT 2024
    - 3.3K bytes
    - Viewed (0)
  6. misc/cgo/gmp/gmp.go

    and then replacing all instances of C.zero with (*_C_zero).
    
    Cgo's most interesting translation is for functions.  If xxx is a C
    function, then cgo rewrites C.xxx into a new function _C_xxx that
    calls the C xxx in a standard pthread.  The new function translates
    its arguments, calls xxx, and translates the return value.
    
    Translation of parameters and the return value follows the type
    translation above except that arrays passed as parameters translate
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Mon Apr 11 16:34:30 GMT 2022
    - 9.5K bytes
    - Viewed (0)
  7. api/go1.16.txt

    pkg syscall (darwin-arm64), const SYS___PTHREAD_CANCELED = 333
    pkg syscall (darwin-arm64), const SYS___PTHREAD_CANCELED ideal-int
    pkg syscall (darwin-arm64), const SYS___PTHREAD_CHDIR = 348
    pkg syscall (darwin-arm64), const SYS___PTHREAD_CHDIR ideal-int
    pkg syscall (darwin-arm64), const SYS___PTHREAD_FCHDIR = 349
    pkg syscall (darwin-arm64), const SYS___PTHREAD_FCHDIR ideal-int
    Plain Text
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Fri Dec 02 16:30:41 GMT 2022
    - 479.2K bytes
    - Viewed (0)
  8. api/go1.txt

    pkg syscall (darwin-386), const SYS___PTHREAD_CANCELED ideal-int
    pkg syscall (darwin-386), const SYS___PTHREAD_CHDIR ideal-int
    pkg syscall (darwin-386), const SYS___PTHREAD_FCHDIR ideal-int
    pkg syscall (darwin-386), const SYS___PTHREAD_KILL ideal-int
    pkg syscall (darwin-386), const SYS___PTHREAD_MARKCANCEL ideal-int
    pkg syscall (darwin-386), const SYS___PTHREAD_SIGMASK ideal-int
    Plain Text
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Wed Aug 14 18:58:28 GMT 2013
    - 1.7M bytes
    - Viewed (1)
  9. api/go1.1.txt

    pkg syscall (darwin-386), const SYS___PTHREAD_CANCELED = 333
    pkg syscall (darwin-386), const SYS___PTHREAD_CHDIR = 348
    pkg syscall (darwin-386), const SYS___PTHREAD_FCHDIR = 349
    pkg syscall (darwin-386), const SYS___PTHREAD_KILL = 328
    pkg syscall (darwin-386), const SYS___PTHREAD_MARKCANCEL = 332
    pkg syscall (darwin-386), const SYS___PTHREAD_SIGMASK = 329
    pkg syscall (darwin-386), const SYS___SEMWAIT_SIGNAL = 334
    Plain Text
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Thu Mar 31 20:37:15 GMT 2022
    - 2.6M bytes
    - Viewed (0)
Back to top