#include <stdlib.h>
#include <unistd.h>
static void
{
usleep((
cne_id() * 10000) + 100000);
cne_printf(
"[yellow]hello world! [magenta]thread id [red]%4d [yellow]Done[]\n",
cne_id());
}
int
{
int tidx;
int num_threads = 1;
if (argc > 1)
num_threads = atoi(argv[1]);
cne_printf(
"\n[magenta]Max threads[]: [red]%d[], [magenta]Max lcores[]: [red]%d[], "
"[magenta]NUMA nodes[]: [red]%d[], [magenta]Num Threads[]: [red]%d[]\n\n",
for (int i = 0; i < num_threads; i++) {
if (idx < 0) {
}
}
usleep(1000);
cne_printf(
"\n[magenta]Waiting for all threads to stop![]\n\n");
cne_printf(
"\n[magenta]All threads have stopped![]\n");
return 0;
}
CNDP_API int cne_id(void)
CNDP_API int cne_max_threads(void)
CNDP_API int cne_init(void)
CNDP_API int cne_unregister(int tidx)
#define cne_panic(format, args...)
CNDP_API int cne_printf(const char *fmt,...)
CNDP_API unsigned int cne_max_lcores(void)
CNDP_API int cne_max_numa_nodes(void)
CNDP_API int thread_create(const char *name, thd_func_t func, void *arg)
CNDP_API int thread_wait_all(unsigned int checks, unsigned int usec, int skip)