On Mon, Feb 11, 2019 at 10:46 PM Giuliano Belinassi <giuliano.belina...@usp.br> wrote: > > Hi, > > I was just wondering what API should I use to spawn threads and control > its flow. Should I use OpenMP, pthreads, or something else? > > My point what if we break compatibility with something. If we use > OpenMP, I'm afraid that we will break compatibility with compilers not > supporting it. On the other hand, If we use pthread, we will break > compatibility with non-POSIX systems (Windows).
I'm not sure we have a thread abstraction for the host - we do have one for the target via libgcc gthr.h though. For prototyping I'd resort to this same interface and fixup the host != target case as needed. Richard. > > Giuliano.