Depends. You use vendor specific libraries for hard real time systems, or in house libraries, or roll your own functions.