xref: /haiku/src/tools/fs_shell/thread.cpp (revision 1214ef1b2100f2b3299fc9d8d6142e46f70a4c3f)
1 /*
2  * Copyright 2007, Ingo Weinhold, bonefish@cs.tu-berlin.de.
3  * Distributed under the terms of the MIT License.
4  */
5 
6 #include "compatibility.h"
7 
8 #include "fssh_os.h"
9 
10 #include <OS.h>
11 
12 #include "fssh_errors.h"
13 
14 
15 fssh_status_t
16 fssh_kill_thread(fssh_thread_id thread)
17 {
18 	return kill_thread(thread);
19 }
20 
21 
22 fssh_status_t
23 fssh_resume_thread(fssh_thread_id thread)
24 {
25 	return resume_thread(thread);
26 }
27 
28 
29 fssh_status_t
30 fssh_suspend_thread(fssh_thread_id thread)
31 {
32 	return suspend_thread(thread);
33 }
34 
35 
36 fssh_thread_id
37 fssh_find_thread(const char *name)
38 {
39 	return find_thread(name);
40 }
41 
42 
43 fssh_status_t
44 fssh_snooze(fssh_bigtime_t amount)
45 {
46 	return snooze(amount);
47 }
48 
49 
50 fssh_status_t
51 fssh_snooze_until(fssh_bigtime_t time, int timeBase)
52 {
53 	return snooze_until(time, timeBase);
54 }
55