Mercurial > hg > aboriginal
view sources/native-root/src/thread-hello.c @ 1008:2d5e356580b9
Move sources/native to sources/native-root
author | Rob Landley <rob@landley.net> |
---|---|
date | Thu, 25 Mar 2010 23:30:20 -0500 |
parents | sources/native/src/thread-hello.c@391ea980fffd |
children |
line wrap: on
line source
#define __REENTRANT #include <pthread.h> #include <stdio.h> void *threadhello(void *unused) { printf("Hello, world!\n"); return 0; } int main() { pthread_t thready; pthread_create(&thready, NULL, &threadhello, NULL); usleep(10); }