Here are couple of patches from Tristan. They extend the tasking support to the environments where the tasking runtime is slightly different. I wanted to go a little further in this before submitting, and make the globals per-inferior, but I don't think I'll have the time in the coming weeks.