mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-12-15 09:33:50 +01:00
examples: adapted to renamed THREAD_FLAGS
This commit is contained in:
parent
22428f6cfb
commit
4216f9fef0
@ -51,7 +51,7 @@ int main(void)
|
||||
msg_t m;
|
||||
|
||||
kernel_pid_t pid = thread_create(second_thread_stack, sizeof(second_thread_stack),
|
||||
THREAD_PRIORITY_MAIN - 1, CREATE_STACKTEST,
|
||||
THREAD_PRIORITY_MAIN - 1, THREAD_CREATE_STACKTEST,
|
||||
second_thread, NULL, "pong");
|
||||
|
||||
m.content.value = 1;
|
||||
|
||||
@ -130,7 +130,8 @@ static int udp_start_server(char *port_str)
|
||||
}
|
||||
/* start server (which means registering pktdump for the chosen port) */
|
||||
if (thread_create(server_stack, sizeof(server_stack), THREAD_PRIORITY_MAIN - 1,
|
||||
CREATE_STACKTEST, _server_thread, port_str, "UDP server") <= KERNEL_PID_UNDEF) {
|
||||
THREAD_CREATE_STACKTEST,
|
||||
_server_thread, port_str, "UDP server") <= KERNEL_PID_UNDEF) {
|
||||
server_socket = -1;
|
||||
puts("error initializing thread");
|
||||
return 1;
|
||||
|
||||
@ -49,7 +49,9 @@ int main()
|
||||
printf("\n");
|
||||
|
||||
/* create thread A */
|
||||
thread_create(threadA_stack, sizeof(threadA_stack), 0, CREATE_WOUT_YIELD, threadA_func, NULL, "thread A");
|
||||
thread_create(threadA_stack, sizeof(threadA_stack), 0,
|
||||
THREAD_CREATE_WOUT_YIELD,
|
||||
threadA_func, NULL, "thread A");
|
||||
|
||||
printf("******** Hello, you're in thread #%" PRIkernel_pid " ********\n", sched_active_pid);
|
||||
printf("We'll test C++ class and methods here!\n");
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user