source:
proiecte/swift/trunk/src/swift_thread.c
@
176
Last change on this file since 176 was 176, checked in by , 14 years ago | |
---|---|
File size: 366 bytes |
Line | |
---|---|
1 | /* |
2 | * swift_thread.c |
3 | * |
4 | * (c) 2009 Ionut Rosoiu <ionut.rosoiu@gmail.com> |
5 | * |
6 | */ |
7 | |
8 | #include "swift_thread.h" |
9 | |
10 | void swift_thread_start(swift_thread_t *thread, |
11 | swift_entrypoint_t func) { |
12 | |
13 | //TODO: check |
14 | pthread_create(&thread->thread, NULL, func, thread); |
15 | } |
16 | |
17 | void swift_thread_wait(swift_thread_t *thread) { |
18 | //TODO: check |
19 | pthread_join(thread->thread, NULL); |
20 | } |
Note: See TracBrowser
for help on using the repository browser.