Developer World
Spresense SDK Library v3.2.0-ebc0364
MP task
Collaboration diagram for MP task:

Modules

 Defines
 
 Data types
 
 Functions
 

Macros

#define CPU_ZERO(s)   do { *(s) = 0; } while (0)
 
#define CPU_SET(c, s)   do { *(s) |= (1 << (c)); } while (0)
 
#define CPU_CLR(c, s)   do { *(s) &= ~(1 << (c)); } while (0)
 
#define CPU_ISSET(c, s)   ((*(s) & (1 << (c))) != 0)
 
#define CPU_COUNT(s)   sched_cpu_count(s)
 
#define CPU_AND(d, s1, s2)   do { *(d) = *(s1) & *(s2); } while (0)
 
#define CPU_OR(d, s1, s2)   do { *(d) = *(s1) | *(s2); } while (0)
 
#define CPU_XOR(d, s1, s2)   do { *(d) = *(s1) ^ *(s2); } while (0)
 
#define CPU_EQUAL(s1, s2)   (*(s2) == *(s2))
 
#define CPU_ALLOC(n)   (FAR cpu_set_t *)malloc(sizeof(cpu_set_t));
 
#define CPU_FREE(s)   free(s)
 
#define CPU_ALLOC_SIZE(n)   sizeof(cpu_set_t)
 
#define CPU_ZERO_S(n, s)   CPU_ZERO_S(s)
 
#define CPU_SET_S(c, n, s)   CPU_SET(c,s)
 
#define CPU_CLR_S(c, n, s)   CPU_CLR(c,s)
 
#define CPU_ISSET_S(c, n, s)   CPU_ISSET(c,s)
 
#define CPU_COUNT_S(n, s)   CPU_COUNT(s)
 
#define CPU_AND_S(n, d, s1, s2)   CPU_AND(d,s1,s2)
 
#define CPU_OR_S(n, d, s1, s2)   CPU_OR(d,s1,s2)
 
#define CPU_XOR_S(n, d, s1, s2)   CPU_XOR(d,s1,s2)
 
#define CPU_EQUAL_S(n, s1, s2)   CPU_EQUAL(s1,s2)
 
#define NMPBINDS   8
 
#define EXTERN   extern "C"
 

Detailed Description

MP task APIs controlling worker or any other processes running on other CPUs such as pthreads.