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

#include <tbb_thread.h>

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

Public Member Functions

 thread_closure_2 (const F &f, const X &x, const Y &y)
 
- 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
 
arg2
 

Detailed Description

template<class F, class X, class Y>
struct tbb::internal::thread_closure_2< F, X, Y >

Definition at line 93 of file tbb_thread.h.

Constructor & Destructor Documentation

◆ thread_closure_2()

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

Definition at line 104 of file tbb_thread.h.

Member Function Documentation

◆ start_routine()

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

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

Definition at line 98 of file tbb_thread.h.

98  {
99  thread_closure_2 *self = static_cast<thread_closure_2*>(c);
100  self->function(self->arg1, self->arg2);
101  delete self;
102  return 0;
103  }
thread_closure_2(const F &f, const X &x, const Y &y)
Definition: tbb_thread.h:104

Member Data Documentation

◆ arg1

template<class F , class X , class Y >
X tbb::internal::thread_closure_2< F, X, Y >::arg1

Definition at line 95 of file tbb_thread.h.

◆ arg2

template<class F , class X , class Y >
Y tbb::internal::thread_closure_2< F, X, Y >::arg2

Definition at line 96 of file tbb_thread.h.

◆ function

template<class F , class X , class Y >
F tbb::internal::thread_closure_2< F, X, Y >::function

Definition at line 94 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.