Communication between threads

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
user_2177781
Level 5
Level 5
25 likes received 10 likes received 5 likes given

- Hello,

I am working on getting a multi threaded system up and running and Create, Join and Delete Threads with WICED APIs was a great start, but I would like to know if there is any way to have the threads being able to communicate? Sending events and data directly between them?

I have looked into the wiced_rtos_send_asynchronous_event but I don't know if I am on the right track here.

Anybody which have experience with this?

Regards

- Renejos

0 Likes
1 Solution
Anonymous
Not applicable

Hi,

One usual way of doing this is using message Queues.

Have a look at libraries/daemons/http_server/http_server.c .. http_server_thread_main

Regards,

Bassem

View solution in original post

0 Likes
1 Reply
Anonymous
Not applicable

Hi,

One usual way of doing this is using message Queues.

Have a look at libraries/daemons/http_server/http_server.c .. http_server_thread_main

Regards,

Bassem

0 Likes