Created
May 15, 2010 08:02
-
-
Save FooBarWidget/402092 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'mkmf' | |
$LIBS << " -pthread" | |
create_makefile('myext') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <pthread.h> | |
#include <stdlib.h> | |
static void *dummy(void *arg) { | |
reurn NULL; | |
} | |
void Init_myext() { | |
pthread_t thr; | |
pthread_create(&thr, NULL, dummy, NULL); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment