The latter passes a thread ID instead of a mask, making the code simpler.
Another non-trivial part that is often needed. Exported functions and flags available to applications were documented as well as some restrictions and falltraps.