Cyber Garage Portable Runtime (CGPR) for C
thread_list.c File Reference
#include <cgpr/util/thread.h>

Functions

CGThreadListcg_threadlist_new (void)
 
void cg_threadlist_delete (CGThreadList *threadList)
 
bool cg_threadlist_start (CGThreadList *threadList)
 
bool cg_threadlist_stop (CGThreadList *threadList)
 

Function Documentation

◆ cg_threadlist_delete()

void cg_threadlist_delete ( CGThreadList * threadList)

Destroy a thread list

Parameters
threadListThe thread list in question

◆ cg_threadlist_new()

CGThreadList * cg_threadlist_new ( void )

Create a new thread list

Returns
Thread list

◆ cg_threadlist_start()

bool cg_threadlist_start ( CGThreadList * threadList)

Start all threads in the thread list

Parameters
threadListThe thread list in question

◆ cg_threadlist_stop()

bool cg_threadlist_stop ( CGThreadList * threadList)

Stop all threads in the thread list

Parameters
threadListThe thread list in question