When incorporating the APIs into your application, use the following basic structure:
Start with tcc_init(). This function initializes the libraries. There are no required parameters, so you can use the function like this:
Or you can add the optional parameter .cpuid to specify the core on which your application should run. If passed, tcc_init() will set the CPU affinity and use cpuid for subsequent tcc_alloc() calls. When you call tcc_init() with .cpuid = 3, for example, the API moves the application to Core 3, where it will run.
static int cpuid = 3;
tcc_init(.cpuid=cpuid);... Last updated on 04/19/2018 - 14:08