Change the way thread priority is handled in binfmt/ to better match the way that priority is set up for the builtin tasks

git-svn-id: http://svn.code.sf.net/p/nuttx/code/trunk@5527 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
patacongo
2013-01-17 00:30:12 +00:00
parent e7e1c6aee0
commit caeef71797
13 changed files with 189 additions and 49 deletions
+8 -3
View File
@@ -117,6 +117,12 @@ struct binary_s
#endif
size_t mapsize; /* Size of the mapped address region (needed for munmap) */
/* Start-up information that is provided by the loader, but may be modified
* by the caller between load_module() and exec_module() calls.
*/
uint8_t priority; /* Task execution priority */
size_t stacksize; /* Size of the stack in bytes (unallocated) */
};
@@ -221,15 +227,14 @@ int unload_module(FAR const struct binary_s *bin);
*
****************************************************************************/
int exec_module(FAR const struct binary_s *bin, int priority);
int exec_module(FAR const struct binary_s *bin);
/****************************************************************************
* Name: exec
*
* Description:
* This is a convenience function that wraps load_ and exec_module into
* one call. The priority of the executed program is set to be the
* same as the priority of the calling thread.
* one call.
*
* Input Parameter:
* filename - Fulll path to the binary to be loaded