]> git.saurik.com Git - apple/libc.git/blob - mach/ms_thread_switch.c
2f6a6d683e74c8ba84668c3fa60c8a1484e8f152
[apple/libc.git] / mach / ms_thread_switch.c
1 /*
2 * @OSF_COPYRIGHT@
3 */
4
5 /*
6 * Mach Operating System
7 * Copyright (c) 1991,1990,1989 Carnegie Mellon University
8 * All Rights Reserved.
9 *
10 * Permission to use, copy, modify and distribute this software and its
11 * documentation is hereby granted, provided that both the copyright
12 * notice and this permission notice appear in all copies of the
13 * software, derivative works or modified versions, and any portions
14 * thereof, and that both notices appear in supporting documentation.
15 *
16 * CARNEGIE MELLON ALLOWS FREE USE OF THIS SOFTWARE IN ITS "AS IS"
17 * CONDITION. CARNEGIE MELLON DISCLAIMS ANY LIABILITY OF ANY KIND FOR
18 * ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
19 *
20 * Carnegie Mellon requests users of this software to return to
21 *
22 * Software Distribution Coordinator or Software.Distribution@CS.CMU.EDU
23 * School of Computer Science
24 * Carnegie Mellon University
25 * Pittsburgh PA 15213-3890
26 *
27 * any improvements or extensions that they make and grant Carnegie Mellon
28 * the rights to redistribute these changes.
29 */
30
31 #include <mach/mach.h>
32 #include <mach/message.h>
33 #include <mach/rpc.h>
34 #include <mach/mach_syscalls.h>
35 #include <mach/thread_switch.h>
36
37 kern_return_t
38 thread_switch(
39 mach_port_t thread,
40 int option,
41 mach_msg_timeout_t option_time)
42 {
43 kern_return_t result;
44
45 result = syscall_thread_switch(thread, option, option_time);
46 return (result);
47 }