oneTBB icon indicating copy to clipboard operation
oneTBB copied to clipboard

Remove usage of depreciated POSIX ucontext

Open kallisti5 opened this issue 2 years ago • 1 comments

ucontext was outdated by POSIX issue 7. It's used in src/tbb/arena.cpp via src/tbb/co_context.h

Pure POSIX platforms don't have ucontext.h available. As the source code notes, Mac OS X is already issuing depreciation warnings about its use.

Overall, oneTBB needs converted over to standard pthreads on Linux/unix platforms

kallisti5 avatar Feb 28 '22 23:02 kallisti5

I went to build on OpenBSD and ran into this. OpenBSD doesn't have ucontext and never will. As you said it has been long removed by POSIX.

brad0 avatar Jan 21 '23 00:01 brad0