Searched refs:MAX_NUM_SESSIONS (Results 1 – 2 of 2) sorted by relevance
39 #define MAX_NUM_SESSIONS 128 macro75 static FwdLockFile_Session_t *sessionPtrs[MAX_NUM_SESSIONS] = { NULL };96 for (i = 0; i < MAX_NUM_SESSIONS; ++i) { in FwdLockFile_AcquireSession()97 int candidateSessionId = (fileDesc + i) % MAX_NUM_SESSIONS; in FwdLockFile_AcquireSession()110 if (i == MAX_NUM_SESSIONS) { in FwdLockFile_AcquireSession()132 for (i = 0; i < MAX_NUM_SESSIONS; ++i) { in FwdLockFile_FindSession()133 int candidateSessionId = (fileDesc + i) % MAX_NUM_SESSIONS; in FwdLockFile_FindSession()141 if (i == MAX_NUM_SESSIONS) { in FwdLockFile_FindSession()155 assert(0 <= sessionId && sessionId < MAX_NUM_SESSIONS && sessionPtrs[sessionId] != NULL); in FwdLockFile_ReleaseSession()
37 #define MAX_NUM_SESSIONS 32 macro159 static FwdLockConv_Session_t *sessionPtrs[MAX_NUM_SESSIONS] = { NULL };198 for (i = 0; i < MAX_NUM_SESSIONS; ++i) { in FwdLockConv_AcquireSession()219 return 0 <= sessionId && sessionId < MAX_NUM_SESSIONS && sessionPtrs[sessionId] != NULL; in FwdLockConv_IsValidSession()