Skip to content
Snippets Groups Projects
Commit 101152c6 authored by Alexandru-Daniel BARBU's avatar Alexandru-Daniel BARBU
Browse files

Merge branch 'solutions' into 'master'

I might have finished the ring_buffer_stop() function. I am not sure yet what it should do.

See merge request !3
parents 889c4089 46348b11
No related branches found
No related tags found
1 merge request!3I might have finished the ring_buffer_stop() function. I am not sure yet what it should do.
Pipeline #90285 passed
......@@ -127,8 +127,17 @@ void ring_buffer_destroy(so_ring_buffer_t *ring)
}
}
/*
* @brief Stops a thread
*
* Makes a thread drop its current execution early.
*
* Function is ideal for when the ring buffer is terminated
* but there still are threads runing something, i guess
*/
void ring_buffer_stop(so_ring_buffer_t *ring)
{
/* TODO: Implement ring_buffer_stop */
pthread_exit("Thread stopped");
(void) ring;
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment