This patch adds a few compiler conditionals so that multi-thread-specific code is not included if CONFIG_MULTITHREAD_OS is not set.
With kind regards,Erik