Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for pthread_getspecific (0.15 sec)

  1. testing/performance/src/templates/native-dependents-resources/googleTest/libs/googleTest/1.7.0/include/gtest/internal/gtest-port.h

            static_cast<ThreadLocalValueHolderBase*>(pthread_getspecific(key_));
        if (holder != NULL) {
          return CheckedDowncastToActualType<ValueHolder>(holder)->pointer();
        }
    
        ValueHolder* const new_holder = new ValueHolder(default_);
        ThreadLocalValueHolderBase* const holder_base = new_holder;
        GTEST_CHECK_POSIX_SUCCESS_(pthread_setspecific(key_, holder_base));
        return new_holder->pointer();
      }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 67.2K bytes
    - Viewed (0)
  2. src/runtime/cgo/gcc_libinit.c

    	// when a C thread exits after a cgo call.
    	// We only invoke this function once per thread in runtime.needAndBindM,
    	// and the next calls just reuse the bound m.
    	pthread_setspecific(pthread_g, g);
    }
    
    void
    x_cgo_notify_runtime_init_done(void* dummy __attribute__ ((unused))) {
    	pthread_mutex_lock(&runtime_init_mu);
    	__atomic_store_n(&runtime_init_done, 1, __ATOMIC_RELEASE);
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 29 01:07:18 UTC 2024
    - 5.8K bytes
    - Viewed (0)
Back to top