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

Adding new fields into class task_prefix

irisshinra308
Beginner
131 Views
Hello~

I am trying to add some variables into the task_prefix class.
According to the comment in the task.h, fields are ordered in way that preserves backwards compatibility and yields good packing on typical 32-bit and 64-bit platforms.

I have already added one integer variable and found nothing wrong.
However, after adding another boolean variable, the small program I write crashes due to the segmentation fault.
Could anyone tell me how to add variable into task_prefix class safely?

Dennis

0 Kudos
0 Replies
Reply