Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 20 for QThread (0.23 sec)

  1. 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)
  2. src/cmd/cgo/doc.go

    When using cgo, Go must not assume that it owns all details of the
    process. In particular it needs to coordinate with C in the use of
    threads and thread-local storage. The runtime package declares a few
    variables:
    
    	var (
    		iscgo             bool
    		_cgo_init         unsafe.Pointer
    		_cgo_thread_start unsafe.Pointer
    	)
    
    Any package using cgo imports "runtime/cgo", which provides
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Sun Mar 31 09:02:45 GMT 2024
    - 42.1K bytes
    - Viewed (0)
  3. src/cmd/cgo/internal/test/callback.go

    	if lockedOSThread() {
    		t.Fatal("locked OS thread on entry to TestCallbackPanic")
    	}
    	defer func() {
    		s := recover()
    		if s == nil {
    			t.Fatal("did not panic")
    		}
    		if s.(string) != "callback panic" {
    			t.Fatal("wrong panic:", s)
    		}
    		if lockedOSThread() {
    			t.Fatal("locked OS thread on exit from TestCallbackPanic")
    		}
    	}()
    	nestedCall(func() { panic("callback panic") })
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Fri May 12 12:00:02 GMT 2023
    - 111.5K bytes
    - Viewed (0)
  4. doc/go1.17_spec.html

    }
    
    // empty a channel
    for range ch {}
    </pre>
    
    
    <h3 id="Go_statements">Go statements</h3>
    
    <p>
    A "go" statement starts the execution of a function call
    as an independent concurrent thread of control, or <i>goroutine</i>,
    within the same address space.
    </p>
    
    <pre class="ebnf">
    GoStmt = "go" Expression .
    </pre>
    
    <p>
    HTML
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Apr 11 20:22:45 GMT 2024
    - 211.6K bytes
    - Viewed (0)
  5. 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 30 11:13:12 GMT 2024
    - Last Modified: Thu Mar 31 20:37:15 GMT 2022
    - 2.6M bytes
    - Viewed (0)
  6. doc/go_spec.html

    for range 1e3 {
    }
    </pre>
    
    
    <h3 id="Go_statements">Go statements</h3>
    
    <p>
    A "go" statement starts the execution of a function call
    as an independent concurrent thread of control, or <i>goroutine</i>,
    within the same address space.
    </p>
    
    <pre class="ebnf">
    GoStmt = "go" Expression .
    </pre>
    
    <p>
    HTML
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Apr 26 00:39:16 GMT 2024
    - 279.6K bytes
    - Viewed (0)
  7. src/cmd/cgo/internal/test/cgo_thread_lock.go

    			select {
    			case <-stop:
    				return
    			case <-time.After(time.Millisecond * 100):
    			}
    		}
    	}()
    	defer close(stop)
    
    	for i := 0; i < 1000; i++ {
    		if !C.Ctid() {
    			t.Fatalf("cgo has not locked OS thread")
    		}
    	}
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Thu May 18 16:55:07 GMT 2023
    - 939 bytes
    - Viewed (0)
  8. .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 30 11:13:12 GMT 2024
    - Last Modified: Thu Jan 04 23:31:17 GMT 2024
    - 3.3K bytes
    - Viewed (0)
  9. api/go1.2.txt

    pkg syscall (linux-386), const CLONE_SIGHAND ideal-int
    pkg syscall (linux-386), const CLONE_SYSVSEM = 262144
    pkg syscall (linux-386), const CLONE_SYSVSEM ideal-int
    pkg syscall (linux-386), const CLONE_THREAD = 65536
    pkg syscall (linux-386), const CLONE_THREAD ideal-int
    pkg syscall (linux-386), const CLONE_UNTRACED = 8388608
    pkg syscall (linux-386), const CLONE_UNTRACED ideal-int
    pkg syscall (linux-386), const CLONE_VFORK = 16384
    Plain Text
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Oct 18 04:36:59 GMT 2013
    - 1.9M bytes
    - Viewed (2)
  10. src/cmd/cgo/internal/test/cthread_windows.c

    	return 0;
    }
    
    void
    doAdd(int max, int nthread)
    {
    	enum { MaxThread = 20 };
    	int i;
    	uintptr_t thread_id[MaxThread];
    	
    	if(nthread > MaxThread)
    		nthread = MaxThread;
    	for(i=0; i<nthread; i++)
    		thread_id[i] = _beginthreadex(0, 0, addThread, &max, 0, 0);
    	for(i=0; i<nthread; i++) {
    		WaitForSingleObject((HANDLE)thread_id[i], INFINITE);
    		CloseHandle((HANDLE)thread_id[i]);
    	}
    }
    
    __stdcall
    C
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Wed May 17 21:53:11 GMT 2023
    - 1.1K bytes
    - Viewed (0)
Back to top