Searched defs:index (Results 1 - 6 of 6) sorted by relevance

/libmicro/
H A Dfile_lock.c47 block(int index) argument
53 fl.l_start = index;
59 unblock(int index) argument
65 fl.l_start = index;
H A Dcascade_cond.c173 block(int index) argument
175 (void) pthread_mutex_lock(&mxs[index]);
176 while (conds[index] != 0) {
177 (void) pthread_cond_wait(&cvs[index], &mxs[index]);
179 conds[index] = 1;
180 (void) pthread_mutex_unlock(&mxs[index]);
186 unblock(int index) argument
188 (void) pthread_mutex_lock(&mxs[index]);
189 conds[index]
[all...]
H A Dcascade_fcntl.c131 block(int index) argument
137 fl.l_start = index;
143 unblock(int index) argument
149 fl.l_start = index;
172 /* lock index asignment for us and them */
H A Dcascade_flock.c139 block(int index) argument
141 return (flock(files[index], LOCK_EX) == -1);
145 unblock(int index) argument
147 return (flock(files[index], LOCK_UN) == -1);
168 /* lock index asignment for us and them */
H A Dcascade_lockf.c134 block(int index) argument
136 return (lockf(files[index], F_LOCK, 0) == -1);
140 unblock(int index) argument
142 return (lockf(files[index], F_ULOCK, 0) == -1);
163 /* lock index asignment for us and them */
H A Dcascade_mutex.c138 block(int index) argument
140 return (pthread_mutex_lock(&locks[index]) == -1);
144 unblock(int index) argument
146 return (pthread_mutex_unlock(&locks[index]) == -1);
167 /* lock index asignment for us and them */

Completed in 11 milliseconds