Home ⌂Doc Index ◂Up ▴
Intel(R) Threading Building Blocks Doxygen Documentation  version 4.2.3
tbb::internal::allocate_continuation_proxy Class Reference

#include <task.h>

Inheritance diagram for tbb::internal::allocate_continuation_proxy:
Collaboration diagram for tbb::internal::allocate_continuation_proxy:

Public Member Functions

task &__TBB_EXPORTED_METHOD allocate (size_t size) const
 
void __TBB_EXPORTED_METHOD free (task &) const
 

Additional Inherited Members

- Private Member Functions inherited from tbb::internal::no_assign
void operator= (const no_assign &)=delete
 
 no_assign (const no_assign &)=default
 
 no_assign ()=default
 

Detailed Description

Definition at line 170 of file task.h.

Member Function Documentation

◆ allocate()

task & tbb::internal::allocate_continuation_proxy::allocate ( size_t  size) const

Definition at line 96 of file task.cpp.

96  {
97  task* t = (task*)this;
100  task* parent = t->parent();
101  t->prefix().parent = NULL;
102  return s->allocate_task( size, __TBB_CONTEXT_ARG(parent, t->prefix().context) );
103 }
Work stealing task scheduler.
Definition: scheduler.h:137
void const char const char int ITT_FORMAT __itt_group_sync x void const char ITT_FORMAT __itt_group_sync s void ITT_FORMAT __itt_group_sync p void ITT_FORMAT p void ITT_FORMAT p no args __itt_suppress_mode_t unsigned int void size_t size
#define __TBB_CONTEXT_ARG(arg1, context)
void assert_task_valid(const task *)
void const char const char int ITT_FORMAT __itt_group_sync x void const char ITT_FORMAT __itt_group_sync s void ITT_FORMAT __itt_group_sync p void ITT_FORMAT p void ITT_FORMAT p no args __itt_suppress_mode_t unsigned int void size_t ITT_FORMAT d void ITT_FORMAT p void ITT_FORMAT p __itt_model_site __itt_model_site_instance ITT_FORMAT p __itt_model_task __itt_model_task_instance ITT_FORMAT p void ITT_FORMAT p void ITT_FORMAT p void size_t ITT_FORMAT d void ITT_FORMAT p const wchar_t ITT_FORMAT s const char ITT_FORMAT s const char ITT_FORMAT s const char ITT_FORMAT s no args void ITT_FORMAT p size_t ITT_FORMAT d no args const wchar_t const wchar_t ITT_FORMAT s __itt_heap_function void size_t int ITT_FORMAT d __itt_heap_function void ITT_FORMAT p __itt_heap_function void void size_t int ITT_FORMAT d no args no args unsigned int ITT_FORMAT u const __itt_domain __itt_id ITT_FORMAT lu const __itt_domain __itt_id __itt_id parent
void const char const char int ITT_FORMAT __itt_group_sync x void const char ITT_FORMAT __itt_group_sync s void ITT_FORMAT __itt_group_sync p void ITT_FORMAT p void ITT_FORMAT p no args __itt_suppress_mode_t unsigned int void size_t ITT_FORMAT d void ITT_FORMAT p void ITT_FORMAT p __itt_model_site __itt_model_site_instance ITT_FORMAT p __itt_model_task * task
static generic_scheduler * local_scheduler_weak()
Definition: governor.h:134
void const char const char int ITT_FORMAT __itt_group_sync s

References __TBB_CONTEXT_ARG, tbb::internal::assert_task_valid(), tbb::internal::task_prefix::context, tbb::internal::governor::local_scheduler_weak(), parent, tbb::internal::task_prefix::parent, tbb::task::parent(), tbb::task::prefix(), s, and size.

Referenced by tbb::interface9::internal::allocate_sibling().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ free()

void tbb::internal::allocate_continuation_proxy::free ( task mytask) const

Definition at line 105 of file task.cpp.

105  {
106  // Restore the parent as it was before the corresponding allocate was called.
107  ((task*)this)->prefix().parent = mytask.parent();
109 }
void free_task(task &t)
Put task on free list.
Definition: scheduler.h:730
Task is known to have been allocated by this scheduler.
void const char const char int ITT_FORMAT __itt_group_sync x void const char ITT_FORMAT __itt_group_sync s void ITT_FORMAT __itt_group_sync p void ITT_FORMAT p void ITT_FORMAT p no args __itt_suppress_mode_t unsigned int void size_t ITT_FORMAT d void ITT_FORMAT p void ITT_FORMAT p __itt_model_site __itt_model_site_instance ITT_FORMAT p __itt_model_task * task
static generic_scheduler * local_scheduler_weak()
Definition: governor.h:134

References tbb::internal::generic_scheduler::free_task(), tbb::internal::governor::local_scheduler_weak(), tbb::internal::local_task, and tbb::task::parent().

Here is the call graph for this function:

The documentation for this class was generated from the following files:

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.