1 .\"
2 .\" Mach Operating System
3 .\" Copyright (c) 1991,1990 Carnegie Mellon University
4 .\" All Rights Reserved.
5 .\"
6 .\" Permission to use, copy, modify and distribute this software and its
7 .\" documentation is hereby granted, provided that both the copyright
8 .\" notice and this permission notice appear in all copies of the
9 .\" software, derivative works or modified versions, and any portions
10 .\" thereof, and that both notices appear in supporting documentation.
11 .\"
12 .\" CARNEGIE MELLON ALLOWS FREE USE OF THIS SOFTWARE IN ITS "AS IS"
13 .\" CONDITION. CARNEGIE MELLON DISCLAIMS ANY LIABILITY OF ANY KIND FOR
14 .\" ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
15 .\"
16 .\" Carnegie Mellon requests users of this software to return to
17 .\"
18 .\" Software Distribution Coordinator or Software.Distribution@CS.CMU.EDU
19 .\" School of Computer Science
20 .\" Carnegie Mellon University
21 .\" Pittsburgh PA 15213-3890
22 .\"
23 .\" any improvements or extensions that they make and grant Carnegie Mellon
24 .\" the rights to redistribute these changes.
25 .\"
26 .\"
27 .\" HISTORY
28 .\" $Log: thread_resume.man,v $
29 .\" Revision 2.4 91/05/14 17:14:26 mrt
30 .\" Correcting copyright
31 .\"
32 .\" Revision 2.3 91/02/14 14:15:29 mrt
33 .\" Changed to new Mach copyright
34 .\" [91/02/12 18:16:22 mrt]
35 .\"
36 .\" Revision 2.2 90/08/07 18:46:22 rpd
37 .\" Created.
38 .\"
39 .TH thread_resume 2 1/22/88
40 .CM 4
41 .SH NAME
42 .nf
43 thread_resume \- resumes specified thread
44 .SH SYNOPSIS
45 .nf
46 .ft B
47 #include <mach.h>
48
49 .nf
50 .ft B
51 kern_return_t thread_resume(target_thread)
52 thread_t target_thread;
53
54
55 .fi
56 .ft P
57 .SH ARGUMENTS
58 .TP 15
59 .B
60 target_thread
61 The thread to be resumed.
62
63 .SH DESCRIPTION
64 Decrements the threads's suspend count. If the count becomes zero
65 the thread is resumed. If it is still positive, the thread
66 is left suspended. The suspend count may not become negative.
67
68 .SH DIAGNOSTICS
69 .TP 25
70 KERN_SUCCESS
71 The thread has been resumed.
72 .TP 25
73 KERN_FAILURE
74 The suspend count is already zero.
75 .TP 25
76 KERN_INVALID_ARGUMENT
77 .B target_thread
78 is not a thread.
79
80 .SH SEE ALSO
81 .B task_suspend, task_resume
82 .B thread_info, thread_create, thread_terminate, thread_suspend
83
84
85
Cache object: 6ec2f655da0ff22e4621ba0d156637c3
|