How does a thread suspend itself?

Hi,

(I'm assuming that the main() function of an application is actually executed as a thread.)  I can't find any clear documentation that describes how a thread can suspend itself via k_thread_suspend().  What's the value of the "thread" argument in this case?

Thanks,

Dave

Related