OLD | NEW |
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ | 1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ |
2 /* This Source Code Form is subject to the terms of the Mozilla Public | 2 /* This Source Code Form is subject to the terms of the Mozilla Public |
3 * License, v. 2.0. If a copy of the MPL was not distributed with this | 3 * License, v. 2.0. If a copy of the MPL was not distributed with this |
4 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ | 4 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ |
5 | 5 |
6 #ifndef nspr_darwin_defs_h___ | 6 #ifndef nspr_darwin_defs_h___ |
7 #define nspr_darwin_defs_h___ | 7 #define nspr_darwin_defs_h___ |
8 | 8 |
9 #include "prthread.h" | 9 #include "prthread.h" |
10 | 10 |
(...skipping 262 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
273 PRUint32 stackSize); | 273 PRUint32 stackSize); |
274 extern void _MD_SET_PRIORITY(struct _MDThread *thread, PRUintn newPri); | 274 extern void _MD_SET_PRIORITY(struct _MDThread *thread, PRUintn newPri); |
275 extern PRStatus _MD_WAIT(PRThread *, PRIntervalTime timeout); | 275 extern PRStatus _MD_WAIT(PRThread *, PRIntervalTime timeout); |
276 extern PRStatus _MD_WAKEUP_WAITER(PRThread *); | 276 extern PRStatus _MD_WAKEUP_WAITER(PRThread *); |
277 extern void _MD_YIELD(void); | 277 extern void _MD_YIELD(void); |
278 | 278 |
279 #endif /* ! _PR_PTHREADS */ | 279 #endif /* ! _PR_PTHREADS */ |
280 | 280 |
281 #define _MD_EARLY_INIT _MD_EarlyInit | 281 #define _MD_EARLY_INIT _MD_EarlyInit |
282 #define _MD_FINAL_INIT _PR_UnixInit | 282 #define _MD_FINAL_INIT _PR_UnixInit |
283 #define _MD_GET_INTERVAL _PR_UNIX_GetInterval | 283 #define _MD_INTERVAL_INIT _PR_Mach_IntervalInit |
284 #define _MD_INTERVAL_PER_SEC _PR_UNIX_TicksPerSecond | 284 #define _MD_GET_INTERVAL _PR_Mach_GetInterval |
| 285 #define _MD_INTERVAL_PER_SEC _PR_Mach_TicksPerSecond |
285 | 286 |
286 extern void _MD_EarlyInit(void); | 287 extern void _MD_EarlyInit(void); |
287 extern PRIntervalTime _PR_UNIX_GetInterval(void); | 288 extern void _PR_Mach_IntervalInit(void); |
288 extern PRIntervalTime _PR_UNIX_TicksPerSecond(void); | 289 extern PRIntervalTime _PR_Mach_GetInterval(void); |
| 290 extern PRIntervalTime _PR_Mach_TicksPerSecond(void); |
289 | 291 |
290 /* | 292 /* |
291 * We wrapped the select() call. _MD_SELECT refers to the built-in, | 293 * We wrapped the select() call. _MD_SELECT refers to the built-in, |
292 * unwrapped version. | 294 * unwrapped version. |
293 */ | 295 */ |
294 #define _MD_SELECT(nfds,r,w,e,tv) syscall(SYS_select,nfds,r,w,e,tv) | 296 #define _MD_SELECT(nfds,r,w,e,tv) syscall(SYS_select,nfds,r,w,e,tv) |
295 | 297 |
296 /* For writev() */ | 298 /* For writev() */ |
297 #include <sys/uio.h> | 299 #include <sys/uio.h> |
298 | 300 |
299 #endif /* nspr_darwin_defs_h___ */ | 301 #endif /* nspr_darwin_defs_h___ */ |
OLD | NEW |