Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 160 for __callback (0.72 sec)

  1. src/internal/trace/testdata/testprog/cgo-callback.go

    // license that can be found in the LICENSE file.
    
    // Tests CPU profiling.
    
    //go:build ignore
    
    package main
    
    /*
    #include <pthread.h>
    
    void go_callback();
    void go_callback2();
    
    static void *thr(void *arg) {
        go_callback();
        return 0;
    }
    
    static void foo() {
        pthread_t th;
        pthread_attr_t attr;
        pthread_attr_init(&attr);
        pthread_attr_setstacksize(&attr, 256 << 10);
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 1.3K bytes
    - Viewed (0)
  2. tensorflow/c/eager/c_api_experimental.cc

        const TFE_CancelCallback* c_callback, const char* callback_name) {
      tensorflow::CancelCallback callback = [callback = c_callback->callback,
                                             context = c_callback->context]() {
        callback(context);
      };
      return tensorflow::unwrap(cancellation_manager)
          ->RegisterCallbackWithErrorLogging(token, callback, callback_name);
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 11 23:52:39 UTC 2024
    - 35.9K bytes
    - Viewed (0)
  3. src/cmd/cgo/internal/testsanitizers/testdata/tsan15.go

    // Running under TSAN, this fails with "signal handler
    // spoils errno".
    
    /*
    #include <pthread.h>
    #include <signal.h>
    #include <stdlib.h>
    
    void go_callback();
    
    static void *thr(void *arg) {
    	int i;
    	for (i = 0; i < 10; i++)
    		go_callback();
    	return 0;
    }
    
    static void *sendthr(void *arg) {
    	pthread_t th = *(pthread_t*)arg;
    	while (1) {
    		int r = pthread_kill(th, SIGWINCH);
    		if (r < 0)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 06 21:14:49 UTC 2024
    - 968 bytes
    - Viewed (0)
  4. okhttp/src/test/java/okhttp3/DispatcherTest.kt

        dispatcher.maxRequests = 2
        client.newCall(newRequest("http://a/1")).enqueue(callback)
        client.newCall(newRequest("http://b/1")).enqueue(callback)
        client.newCall(newRequest("http://c/1")).enqueue(callback)
        client.newCall(newRequest("http://a/2")).enqueue(callback)
        client.newCall(newRequest("http://b/2")).enqueue(callback)
        dispatcher.maxRequests = 4
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Fri Apr 05 03:30:42 UTC 2024
    - 12.7K bytes
    - Viewed (0)
  5. src/runtime/cgocall.go

    	gp.m.incgo = false
    	if gp.m.isextra {
    		gp.m.isExtraInC = false
    	}
    
    	osPreemptExtExit(gp.m)
    
    	if gp.nocgocallback {
    		panic("runtime: function marked with #cgo nocallback called back into Go")
    	}
    
    	cgocallbackg1(fn, frame, ctxt)
    
    	// At this point we're about to call unlockOSThread.
    	// The following code must not change to a different m.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:16:47 UTC 2024
    - 24.2K bytes
    - Viewed (0)
  6. docs/en/docs/advanced/openapi-callbacks.md

    ## The normal **FastAPI** app
    
    Let's first see how the normal API app would look like before adding the callback.
    
    It will have a *path operation* that will receive an `Invoice` body, and a query parameter `callback_url` that will contain the URL for the callback.
    
    This part is pretty normal, most of the code is probably already familiar to you:
    
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Thu May 02 22:37:31 UTC 2024
    - 7.7K bytes
    - Viewed (0)
  7. platforms/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/isolated/IsolatedProjectsToolingApiGradleLifecycleIntegrationTest.groovy

                projectsConfigured(":buildSrc", ":b")
                buildModelCreated()
                modelsCreated(":", ":a")
            }
    
            outputContains("Callback before root project 'root'")
            outputContains("Callback before project ':a'")
            outputContains("Callback before project ':b'")
    
    
            when:
            withIsolatedProjects()
            def model2 = runBuildAction(new FetchCustomModelForEachProject())
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 4.1K bytes
    - Viewed (0)
  8. src/cmd/cgo/internal/swig/swig_test.go

    	mustHaveSwig(t)
    	mustHaveCxx(t)
    	run(t, "testdata/callback", false, "Call")
    	t.Run("lto", func(t *testing.T) { run(t, "testdata/callback", true, "Call") })
    }
    
    func TestCallback(t *testing.T) {
    	testenv.MustHaveCGO(t)
    	mustHaveSwig(t)
    	mustHaveCxx(t)
    	run(t, "testdata/callback", false, "Callback")
    	t.Run("lto", func(t *testing.T) { run(t, "testdata/callback", true, "Callback") })
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 12:38:14 UTC 2024
    - 4K bytes
    - Viewed (0)
  9. tensorflow/cc/experimental/base/tests/tensor_test.cc

        Tensor::DeleterCallback callback = [&done](void* data, size_t len) {
          done = true;
        };
    
        Tensor tensor =
            Tensor::FromBuffer(/*dtype=*/TF_INT32, /*shape=*/shape,
                               /*data=*/data_vector.data(),
                               /*len=*/data_vector.size() * sizeof(int32_t),
                               /*deleter=*/callback, &status);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sat Apr 13 09:56:08 UTC 2024
    - 6K bytes
    - Viewed (0)
  10. okhttp-coroutines/src/main/kotlin/okhttp3/coroutines/ExecuteAsync.kt

    package okhttp3.coroutines
    
    import kotlin.coroutines.resumeWithException
    import kotlinx.coroutines.ExperimentalCoroutinesApi
    import kotlinx.coroutines.suspendCancellableCoroutine
    import okhttp3.Call
    import okhttp3.Callback
    import okhttp3.Response
    import okhttp3.internal.closeQuietly
    import okio.IOException
    
    @ExperimentalCoroutinesApi // resume with a resource cleanup.
    suspend fun Call.executeAsync(): Response =
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Thu Apr 18 01:24:38 UTC 2024
    - 1.5K bytes
    - Viewed (0)
Back to top