summaryrefslogtreecommitdiff
path: root/pthread_attr_setscope.c
diff options
context:
space:
mode:
authorrpj <rpj>2004-05-17 01:38:02 +0000
committerrpj <rpj>2004-05-17 01:38:02 +0000
commit771465fed0cf50ee2dd790723245fc091699c324 (patch)
treed8c18d095a33fe7c4564bd90c5f313bb9e4057dd /pthread_attr_setscope.c
parent8b14911744f58cbe3730703f3fcc41cd969fd0f3 (diff)
re-indentation, bug fixes, hooks for pre-emptive async cancelation
Diffstat (limited to 'pthread_attr_setscope.c')
-rw-r--r--pthread_attr_setscope.c22
1 files changed, 11 insertions, 11 deletions
diff --git a/pthread_attr_setscope.c b/pthread_attr_setscope.c
index 7cf6a12..b8d9fc5 100644
--- a/pthread_attr_setscope.c
+++ b/pthread_attr_setscope.c
@@ -43,20 +43,20 @@
#endif
int
-pthread_attr_setscope(pthread_attr_t *attr, int contentionscope)
+pthread_attr_setscope (pthread_attr_t * attr, int contentionscope)
{
#ifdef _POSIX_THREAD_PRIORITY_SCHEDULING
- switch (contentionscope) {
- case PTHREAD_SCOPE_SYSTEM:
- (*attr)->contentionscope = contentionscope;
- return 0;
- case PTHREAD_SCOPE_PROCESS:
- return ENOTSUP;
- default:
- return EINVAL;
- }
+ switch (contentionscope)
+ {
+ case PTHREAD_SCOPE_SYSTEM:
+ (*attr)->contentionscope = contentionscope;
+ return 0;
+ case PTHREAD_SCOPE_PROCESS:
+ return ENOTSUP;
+ default:
+ return EINVAL;
+ }
#else
return ENOSYS;
#endif
}
-