Skip to content

Commit

Permalink
examples: adapted to renamed THREAD_FLAGS
Browse files Browse the repository at this point in the history
  • Loading branch information
haukepetersen committed Dec 7, 2015
1 parent 22428f6 commit 4216f9f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion examples/ipc_pingpong/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
3 changes: 2 additions & 1 deletion examples/posix_sockets/udp.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
4 changes: 3 additions & 1 deletion examples/riot_and_cpp/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down

0 comments on commit 4216f9f

Please sign in to comment.