| /samples/kernel/condition_variables/simple/ |
| A D | README.rst | 14 thread. Main thread uses a condition variable to wait for a condition to 15 become true. Main thread and the worker thread alternate between their 16 execution based on when the worker thread signals the main thread that is 40 [thread 0] working (0/5) 41 [thread 1] working (0/5) 42 [thread 2] working (0/5) 43 [thread 3] working (0/5) 44 [thread 4] working (0/5) 45 [thread 5] working (0/5) 46 [thread 6] working (0/5) [all …]
|
| /samples/kernel/condition_variables/condvar/ |
| A D | README.rst | 13 thread. A thread uses a condition variable to wait for a condition to 39 Starting watch_count: thread 1 41 inc_count: thread 2, count = 1, unlocking mutex 42 inc_count: thread 3, count = 2, unlocking mutex 43 inc_count: thread 2, count = 3, unlocking mutex 44 inc_count: thread 3, count = 4, unlocking mutex 45 inc_count: thread 2, count = 5, unlocking mutex 46 inc_count: thread 3, count = 6, unlocking mutex 47 inc_count: thread 2, count = 7, unlocking mutex 56 watch_count: thread 1 count now = 137. [all …]
|
| /samples/userspace/syscall_perf/ |
| A D | README.rst | 10 user thread has to go through a system call compared to a supervisor thread that 17 This application creates a supervisor and a user thread. 19 current thread. The user thread has to go through a system call. 30 User thread: 18012 cycles 748 instructions 31 Supervisor thread: 7 cycles 4 instructions 32 User thread: 20136 cycles 748 instructions 33 Supervisor thread: 7 cycles 4 instructions 34 User thread: 18014 cycles 748 instructions 35 Supervisor thread: 7 cycles 4 instructions
|
| A D | sample.yaml | 10 - "User thread"
|
| /samples/subsys/task_wdt/ |
| A D | README.rst | 5 Monitor a thread using a task watchdog. 41 Main thread still alive... 42 Control thread started. 43 Main thread still alive... 44 Main thread still alive... 45 Main thread still alive... 46 Control thread getting stuck... 47 Main thread still alive... 48 Task watchdog channel 1 callback, thread: control
|
| A D | sample.yaml | 12 - "Control thread started." 13 - "Main thread still alive..." 14 - "Control thread getting stuck..." 15 - "Task watchdog channel 1 callback, thread: control"
|
| /samples/userspace/syscall_perf/src/ |
| A D | test_supervisor.c | 18 k_tid_t thread; in supervisor_thread_function() local 27 thread = k_current_get(); in supervisor_thread_function() 47 thread, cycle_count, inst_count); in supervisor_thread_function()
|
| A D | test_user.c | 18 k_tid_t thread; in user_thread_function() local 27 thread = k_current_get(); in user_thread_function() 47 thread, cycle_count, inst_count); in user_thread_function()
|
| /samples/boards/arc_secure_services/ |
| A D | sample.yaml | 20 - "I am the main thread in secure world: 0" 22 - "I am the main thread in secure world: 1" 23 - "I am the main thread in secure world: 2" 24 - "I am the main thread in secure world: 3"
|
| /samples/subsys/llext/edk/app/src/ |
| A D | main.c | 65 k_tid_t thread; member 110 if (extension_threads[i].thread == k_current_get()) { in k_sys_fatal_error_handler() 118 struct k_thread *thread, in run_extension_on_thread() argument 133 k_thread_create(thread, stack, USER_STACKSIZE, in run_extension_on_thread() 136 k_mem_domain_add_thread(domain, thread); in run_extension_on_thread() 139 k_thread_heap_assign(thread, heap); in run_extension_on_thread() 141 extension_threads[max_extension_thread_idx].thread = thread; in run_extension_on_thread() 144 k_thread_start(thread); in run_extension_on_thread()
|
| A D | pubsub.c | 34 k_tid_t thread; member 47 static int remove_subscriber(k_tid_t thread, struct subs *sus) in remove_subscriber() argument 52 if (sus->subscribers[i].thread == thread) { in remove_subscriber() 53 sus->subscribers[i].thread = NULL; in remove_subscriber() 72 static int add_subscriber(k_tid_t thread, struct subs *sus, in add_subscriber() argument 79 sus->subscribers[sus->subscribers_count].thread = thread; in add_subscriber() 83 printk("[app]Thread [%p] registered event [%p]\n", thread, evt); in add_subscriber()
|
| /samples/net/cellular_modem/server/ |
| A D | te_udp_echo.py | 11 self.thread = threading.Thread(target=self._target_) 14 self.thread.start() 18 self.thread.join(1)
|
| A D | te_udp_receive.py | 45 self.thread = threading.Thread(target=self._target_) 49 self.thread.start() 53 self.thread.join(1)
|
| /samples/modules/tflite-micro/tflm_ethosu/src/ |
| A D | main.cpp | 216 k_thread thread; in main() member 236 auto &thread = threads[nthreads]; in main() local 239 thread.id = k_thread_create(&thread.thread, stack, stackSize, inferenceSenderTask, in main() 241 if (thread.id == 0) { in main() 259 auto &thread = threads[nthreads]; in main() local 265 thread.id = k_thread_create(&thread.thread, stack, stackSize, inferenceProcessTask, in main() 267 if (thread.id == 0) { in main()
|
| /samples/arch/smp/pi/ |
| A D | README.rst | 24 This project outputs Pi values calculated by each thread and in the end total time 41 Pi value calculated by thread #0: 3141592653589793238462643383279502884197... 42 Pi value calculated by thread #1: 3141592653589793238462643383279502884197... 44 Pi value calculated by thread #14: 314159265358979323846264338327950288419... 45 Pi value calculated by thread #15: 314159265358979323846264338327950288419...
|
| /samples/drivers/stepper/generic/ |
| A D | Kconfig | 19 int "Monitor thread timeout (ms)" 23 int "Monitor thread stack size"
|
| /samples/userspace/prod_consumer/ |
| A D | README.rst | 44 - Application B processing thread waits on new items in the queue. It 62 I:monitor thread got data payload #0 64 I:monitor thread got data payload #1 66 I:monitor thread got data payload #2 68 I:monitor thread got data payload #3 70 I:monitor thread got data payload #4 74 I:monitor thread got data payload #5 78 I:monitor thread got data payload #6 82 I:monitor thread got data payload #7 86 I:monitor thread got data payload #8 [all …]
|
| /samples/userspace/shared_mem/ |
| A D | README.rst | 49 The PT thread sends a message followed by the encrypted version of the 50 message after sleeping. To send the message the PT thread checks a 52 the encrypt thread. After writing the buffer, the flag is set. The 53 encrypt thread copies the memory from the common buffer into the 54 encrypted thread's private memory when the flag is set and then clears 55 the flag. Once the encrypted thread receives the text string, it 58 thread. The third thread prints the CT to the console with a banner
|
| /samples/modules/tflite-micro/hello_world/ |
| A D | CMakeLists.txt | 7 # C++ ABI for thread-safe initialization of local statics and the constructors don't 8 # appear to require thread safety, we turn it off in the C++ compiler.
|
| /samples/modules/tflite-micro/magic_wand/ |
| A D | CMakeLists.txt | 7 # C++ ABI for thread-safe initialization of local statics and the constructors don't 8 # appear to require thread safety, we turn it off in the C++ compiler.
|
| /samples/basic/minimal/ |
| A D | Kconfig | 6 bool "Do print from the main thread which can be checked"
|
| /samples/basic/threads/ |
| A D | README.rst | 1 .. zephyr:code-sample:: multi-thread-blinky 2 :name: Basic thread manipulation 11 :c:func:`K_THREAD_DEFINE`. It spawns three threads. Each thread is then defined 21 :ref:`FIFO <fifos_v2>` identifying the thread/LED and how many times it has 24 The third thread uses :c:func:`printk` to print the information added to the
|
| /samples/kernel/msg_queue/ |
| A D | README.rst | 4 Implements a basic message queue producer/consumer thread pair. 10 A producer thread sends both normal and urgent messages to be retrieved 11 by a consumer thread. 35 In this sample, one producer thread sends 1 urgent message for each 2 normal
|
| /samples/kernel/metairq_dispatch/ |
| A D | README.rst | 9 This sample demonstrates the use of a thread running at a MetaIRQ 14 a different priority. The dispatch is handled by a MetaIRQ thread fed 18 must happen in the worker thread. This implements a "bursty load" 25 the MetaIRQ thread for dispatch. 27 * The time between ISR and receipt by the worker thread. 29 * The real time spent processing the message in the worker thread, for 31 to measure preemption overhead where the thread is not scheduled. 40 by the MetaIRQ thread. 47 thread always runs immediately after the ISR. It shows reliable, 61 Note that because the test is fundamentally measuring thread [all …]
|
| /samples/subsys/portability/cmsis_rtos_v1/timer_synchronization/ |
| A D | README.rst | 11 The main thread creates a preemptive thread which writes message to message queue 12 and on timer expiry, message is read by main thread.
|