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 81 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 91 of file tbb_thread.h.

91 : 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 85 of file tbb_thread.h.

85  {
86  thread_closure_1 *self = static_cast<thread_closure_1*>(c);
87  self->function(self->arg1);
88  delete self;
89  return 0;
90  }
thread_closure_1(const F &f, const X &x)
Definition: tbb_thread.h:91

Member Data Documentation

◆ arg1

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

Definition at line 83 of file tbb_thread.h.

◆ function

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

Definition at line 82 of file tbb_thread.h.


The documentation for this struct was generated from the following file:

Copyright © 2005-2019 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.