Intel® oneAPI Threading Building Blocks
Ask questions and share information about adding parallelism to your applications when using this threading library.

leave_arena function question

irisshinra308
Beginner
195 Views
Hi~

I have a problem about the leave_arena function.
I have noticed that the master thread would leave and re-enter the arena and some worker threads would leave the arena, too.
What is the purpose of the leaving of the master thread and the worker threads.

By the way, could you tell me what ITT_NOTIFY is?

Thanks

Dennis

0 Kudos
1 Reply
Alexey-Kukanov
Employee
195 Views
Master thread leaves the arena when the job (e.g a TBBalgorithm) initiated by the master completes. Worker threadsleave the arena before shutting down.

ITT_NOTIFY is necessary to support Intel Threading Analysis Tools as well as Intel Parallel Studio.
0 Kudos
Reply