Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for TF_JoinThread (0.2 sec)

  1. tensorflow/c/env.h

    //
    // The given param (which may be null) is passed to work_func when the thread
    // starts. In this way, data may be passed from the thread back to the caller.
    //
    // Caller takes ownership of the result and must call TF_JoinThread on it
    // eventually.
    TF_CAPI_EXPORT extern TF_Thread* TF_StartThread(const TF_ThreadOptions* options,
                                                    const char* thread_name,
    C
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Sat Jan 09 02:53:27 GMT 2021
    - 9.6K bytes
    - Viewed (0)
  2. tensorflow/c/env_test.cc

    TEST(TestEnv, TestThreads) {
      TF_ThreadOptions options;
      TF_DefaultThreadOptions(&options);
      SomeThreadData data;
      TF_Thread* thread =
          TF_StartThread(&options, "SomeThreadName", &SomeThreadFunc, &data);
      TF_JoinThread(thread);
      ::tensorflow::mutex_lock l(data.mu);
      ASSERT_TRUE(data.did_work);
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Mon Dec 10 20:52:48 GMT 2018
    - 4.2K bytes
    - Viewed (0)
  3. tensorflow/c/experimental/filesystem/plugins/gcs/ram_file_block_cache.h

            max_staleness_(max_staleness),
            block_fetcher_(block_fetcher),
            timer_seconds_(timer_seconds),
            pruning_thread_(nullptr,
                            [](TF_Thread* thread) { TF_JoinThread(thread); }) {
        if (max_staleness_ > 0) {
          TF_ThreadOptions thread_options;
          TF_DefaultThreadOptions(&thread_options);
          pruning_thread_.reset(
    C
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Mon Aug 31 04:46:34 GMT 2020
    - 10.6K bytes
    - Viewed (0)
  4. tensorflow/c/env.cc

      cc_options.numa_node = options->numa_node;
      return reinterpret_cast<TF_Thread*>(::tensorflow::Env::Default()->StartThread(
          cc_options, thread_name, [=]() { (*work_func)(param); }));
    }
    
    void TF_JoinThread(TF_Thread* thread) {
      // ::tensorflow::Thread joins on destruction
      delete reinterpret_cast<::tensorflow::Thread*>(thread);
    }
    
    void* TF_LoadSharedLibrary(const char* library_filename, TF_Status* status) {
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Wed Aug 11 01:20:50 GMT 2021
    - 7K bytes
    - Viewed (0)
Back to top