Intel(R) Threading Building Blocks Doxygen Documentation  version 4.2.3
tbb::internal::thread_closure_1< F, X > Struct Template Reference

Structure used to pass user function with 1 argument to thread. More...

#include <tbb_thread.h>

Inheritance diagram for tbb::internal::thread_closure_1< F, X >:
Collaboration diagram for tbb::internal::thread_closure_1< F, X >:

Public Member Functions

 thread_closure_1 (const F &f, const X &x)
 
- Public Member Functions inherited from tbb::internal::thread_closure_base
voidoperator new (size_t size)
 
void operator delete (void *ptr)
 

Static Public Member Functions

static __TBB_NATIVE_THREAD_ROUTINE start_routine (void *c)
 Routine passed to Windows's _beginthreadex by thread::internal_start() inside tbb.dll. More...
 

Public Attributes

function
 
arg1
 

Detailed Description

template<class F, class X>
struct tbb::internal::thread_closure_1< F, X >

Structure used to pass user function with 1 argument to thread.

Definition at line 95 of file tbb_thread.h.

Constructor & Destructor Documentation

◆ thread_closure_1()

template<class F , class X >
tbb::internal::thread_closure_1< F, X >::thread_closure_1 ( const F &  f,
const X &  x 
)
inline

Definition at line 105 of file tbb_thread.h.

105 : function(f), arg1(x) {}

Member Function Documentation

◆ start_routine()

template<class F , class X >
static __TBB_NATIVE_THREAD_ROUTINE tbb::internal::thread_closure_1< F, X >::start_routine ( void c)
inlinestatic

Routine passed to Windows's _beginthreadex by thread::internal_start() inside tbb.dll.

Definition at line 99 of file tbb_thread.h.

99  {
100  thread_closure_1 *self = static_cast<thread_closure_1*>(c);
101  self->function(self->arg1);
102  delete self;
103  return 0;
104  }

References tbb::internal::thread_closure_1< F, X >::function.

Member Data Documentation

◆ arg1

template<class F , class X >
X tbb::internal::thread_closure_1< F, X >::arg1

Definition at line 97 of file tbb_thread.h.

◆ function

template<class F , class X >
F tbb::internal::thread_closure_1< F, X >::function

Definition at line 96 of file tbb_thread.h.

Referenced by tbb::internal::thread_closure_1< F, X >::start_routine().


The documentation for this struct was generated from the following file:
tbb::internal::thread_closure_1::thread_closure_1
thread_closure_1(const F &f, const X &x)
Definition: tbb_thread.h:105
tbb::internal::thread_closure_1::arg1
X arg1
Definition: tbb_thread.h:97

Copyright © 2005-2020 Intel Corporation. All Rights Reserved.

Intel, Pentium, Intel Xeon, Itanium, Intel XScale and VTune are registered trademarks or trademarks of Intel Corporation or its subsidiaries in the United States and other countries.

* Other names and brands may be claimed as the property of others.