summaryrefslogtreecommitdiffstats
path: root/nuttx/include/pthread.h
diff options
context:
space:
mode:
authorpatacongo <patacongo@7fd9a85b-ad96-42d3-883c-3090e2eb8679>2009-03-08 23:33:41 +0000
committerpatacongo <patacongo@7fd9a85b-ad96-42d3-883c-3090e2eb8679>2009-03-08 23:33:41 +0000
commit98f1f1514261a0675f5aef9d55fb1010b5092e14 (patch)
tree13c1a8443302b1e6527a50c27f5e1ba8ae1049ca /nuttx/include/pthread.h
parent8a85a86fdf13fb96e9a53177076c21f041eb652f (diff)
Add support for priority inheritance
git-svn-id: https://nuttx.svn.sourceforge.net/svnroot/nuttx/trunk@1581 7fd9a85b-ad96-42d3-883c-3090e2eb8679
Diffstat (limited to 'nuttx/include/pthread.h')
-rw-r--r--nuttx/include/pthread.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/nuttx/include/pthread.h b/nuttx/include/pthread.h
index a6cccc7860..44cd23c6a4 100644
--- a/nuttx/include/pthread.h
+++ b/nuttx/include/pthread.h
@@ -1,7 +1,7 @@
/********************************************************************************
* pthread.h
*
- * Copyright (C) 2007, 2008 Gregory Nutt. All rights reserved.
+ * Copyright (C) 2007-2009 Gregory Nutt. All rights reserved.
* Author: Gregory Nutt <spudmonkey@racsa.co.cr>
*
* Redistribution and use in source and binary forms, with or without
@@ -155,14 +155,14 @@ typedef pthread_addr_t any_t;
typedef pthread_addr_t (*pthread_startroutine_t)(pthread_addr_t);
typedef pthread_startroutine_t pthread_func_t;
-struct pthread_addr_s
+struct pthread_attr_s
{
size_t stacksize; /* Size of the stack allocated for the pthead */
sint16 priority; /* Priority of the pthread */
ubyte policy; /* Pthread scheduler policy */
ubyte inheritsched; /* Inherit parent prio/policy? */
};
-typedef struct pthread_addr_s pthread_attr_t;
+typedef struct pthread_attr_s pthread_attr_t;
typedef pid_t pthread_t;