MCPcopy Create free account
hub / github.com/ansyun/dpdk-ans / main

Function main

examples/https_server/https_server.c:357–380  ·  view source on GitHub ↗

----------------------------------------------------------------------------*/

Source from the content-addressed store, hash-verified

355}
356/*----------------------------------------------------------------------------*/
357int main(int argc, char *argv[] )
358{
359 int core =0;
360
361 if(argc >= 2)
362 {
363 core = atoi(argv[1]);
364 printf("affinity to core %d \n", core);
365 }
366 else
367 {
368 printf("affinity to 0 core by default \n");
369 }
370
371 /*initialize thread bind cpu*/
372 cpu_set_t cpus;
373 CPU_ZERO(&cpus);
374 CPU_SET((unsigned)core, &cpus);
375 sched_setaffinity(0, sizeof(cpus), &cpus);
376
377 RunHttpsThread();
378
379
380}
381
382

Callers

nothing calls this directly

Calls 1

RunHttpsThreadFunction · 0.85

Tested by

no test coverage detected