diff options
author | Sergey A. Osokin <osa@FreeBSD.org> | 2003-06-21 20:32:55 +0000 |
---|---|---|
committer | Sergey A. Osokin <osa@FreeBSD.org> | 2003-06-21 20:32:55 +0000 |
commit | 242b05c89bc24db8d81090912a9e8bb6fed09c81 (patch) | |
tree | f1a68751f999fbe891e321d423b54423254c277b /devel/libhoard/files/testos.c | |
parent | Update to version 4.68. (diff) |
Add libhoard - fast, scalable and memory-efficient
allocator for multiprocessors.
Approved by: fjoe (mentor) (implicit)
Notes
Notes:
svn path=/head/; revision=83409
Diffstat (limited to 'devel/libhoard/files/testos.c')
-rw-r--r-- | devel/libhoard/files/testos.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/devel/libhoard/files/testos.c b/devel/libhoard/files/testos.c new file mode 100644 index 000000000000..c4413db9c9af --- /dev/null +++ b/devel/libhoard/files/testos.c @@ -0,0 +1,16 @@ +#include <pthread.h> +#include <stdio.h> +#include <stdlib.h> + +int +main(int argc, char *argv[]) +{ + static int level; + + level = pthread_getconcurrency(); + (void)pthread_setconcurrency(level++); + + printf("LIBC_R TEST PASSED: All ok\n"); + + exit(0); +} |