diff options
author | Gregory Nutt <gnutt@nuttx.org> | 2014-10-10 08:35:58 -0600 |
---|---|---|
committer | Gregory Nutt <gnutt@nuttx.org> | 2014-10-10 08:35:58 -0600 |
commit | 1c1cdb89c3242461047d5b63430fa28090a9a65f (patch) | |
tree | db8ec3f0e62f1a8e18aa8bfb1194c553e3d96dd1 /nuttx/sched/init | |
parent | 9b9ec70ae1cc4560810677c6499a35be6ce8c614 (diff) | |
download | nuttx-1c1cdb89c3242461047d5b63430fa28090a9a65f.tar.gz nuttx-1c1cdb89c3242461047d5b63430fa28090a9a65f.tar.bz2 nuttx-1c1cdb89c3242461047d5b63430fa28090a9a65f.zip |
Decoupling work queue data structures. This is part of the preparation to support multiple low-priority worker threads
Diffstat (limited to 'nuttx/sched/init')
-rw-r--r-- | nuttx/sched/init/os_bringup.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/nuttx/sched/init/os_bringup.c b/nuttx/sched/init/os_bringup.c index 751a15449..b4a5537d5 100644 --- a/nuttx/sched/init/os_bringup.c +++ b/nuttx/sched/init/os_bringup.c @@ -222,11 +222,11 @@ static inline void os_workqueues(void) svdbg("Starting kernel worker thread\n"); #endif - g_work[HPWORK].pid = kernel_thread(HPWORKNAME, CONFIG_SCHED_WORKPRIORITY, - CONFIG_SCHED_WORKSTACKSIZE, - (main_t)work_hpthread, - (FAR char * const *)NULL); - DEBUGASSERT(g_work[HPWORK].pid > 0); + g_hpwork.pid = kernel_thread(HPWORKNAME, CONFIG_SCHED_WORKPRIORITY, + CONFIG_SCHED_WORKSTACKSIZE, + (main_t)work_hpthread, + (FAR char * const *)NULL); + DEBUGASSERT(g_hpwork.pid > 0); /* Start a lower priority worker thread for other, non-critical continuation * tasks @@ -236,11 +236,11 @@ static inline void os_workqueues(void) svdbg("Starting low-priority kernel worker thread\n"); - g_work[LPWORK].pid = kernel_thread(LPWORKNAME, CONFIG_SCHED_LPWORKPRIORITY, - CONFIG_SCHED_LPWORKSTACKSIZE, - (main_t)work_lpthread, - (FAR char * const *)NULL); - DEBUGASSERT(g_work[LPWORK].pid > 0); + g_lpwork.pid = kernel_thread(LPWORKNAME, CONFIG_SCHED_LPWORKPRIORITY, + CONFIG_SCHED_LPWORKSTACKSIZE, + (main_t)work_lpthread, + (FAR char * const *)NULL); + DEBUGASSERT(g_lpwork.pid > 0); #endif /* CONFIG_SCHED_LPWORK */ #endif /* CONFIG_SCHED_HPWORK */ |