summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorAllan Stephens <allan.stephens@windriver.com>2016-10-21 15:14:59 -0500
committerAnas Nashif <nashif@linux.intel.com>2016-10-25 00:10:33 +0000
commit06aefdb6542bb478e76f6670859fcd72ae2fee46 (patch)
tree25f0744a9121ccefb43b1caad6c1c1016184f49c /doc
parent35ffaff43dd256b1bbfd2bc1a60776cfb32f1af3 (diff)
unified: Align thread creation APIs
Aligns the APIs for defining a thread at compile time and for spawning a thread at run time. Change-Id: Ic5df450cbe4d0eb562fb4a608f1ac5a8a7cb4b96 Signed-off-by: Allan Stephens <allan.stephens@windriver.com>
Diffstat (limited to 'doc')
-rw-r--r--doc/kernel_v2/threads/lifecycle.rst4
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/kernel_v2/threads/lifecycle.rst b/doc/kernel_v2/threads/lifecycle.rst
index 542a26869..793b2c8fa 100644
--- a/doc/kernel_v2/threads/lifecycle.rst
+++ b/doc/kernel_v2/threads/lifecycle.rst
@@ -131,7 +131,7 @@ The following code spawns a thread that starts immediately.
my_thread_ptr = k_thread_spawn(my_thread_area, MY_THREAD_SIZE,
my_entry_point, 0, 0, 0,
- NULL, MY_PRIORITY, K_NO_WAIT);
+ MY_PRIORITY, 0, K_NO_WAIT);
Alternatively, a thread can be spawned at compile time by calling
:c:macro:`K_THREAD_DEFINE()`. Observe that the macro defines the thread
@@ -143,7 +143,7 @@ The following code has the same effect as the code segment above.
K_THREAD_DEFINE(my_thread_ptr, my_thread_area, MY_THREAD_SIZE,
my_entry_point, 0, 0, 0,
- NULL, MY_PRIORITY, K_NO_WAIT);
+ MY_PRIORITY, 0, K_NO_WAIT);
.. note::
NEED TO FIGURE OUT HOW WE'RE GOING TO HANDLE THE FLOATING POINT OPTIONS!