diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2015-01-20 08:39:06 +0100 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2015-01-20 09:19:00 +0100 |
commit | 91ea7ea614c777595661c26cfa3e064182687f91 (patch) | |
tree | e8e10a2371bcdc50d90c065e795cce4c9db08d2a /rtemsbsd/include/rtems/bsd/bsd.h | |
parent | HOSTNAME(1): Add -m flag (diff) | |
download | rtems-libbsd-91ea7ea614c777595661c26cfa3e064182687f91.tar.bz2 |
Add and use rtems_bsd_get_task_priority()
Diffstat (limited to 'rtemsbsd/include/rtems/bsd/bsd.h')
-rw-r--r-- | rtemsbsd/include/rtems/bsd/bsd.h | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/rtemsbsd/include/rtems/bsd/bsd.h b/rtemsbsd/include/rtems/bsd/bsd.h index a9118ecc..6aea27f2 100644 --- a/rtemsbsd/include/rtems/bsd/bsd.h +++ b/rtemsbsd/include/rtems/bsd/bsd.h @@ -7,7 +7,7 @@ */ /* - * Copyright (c) 2009-2013 embedded brains GmbH. All rights reserved. + * Copyright (c) 2009-2015 embedded brains GmbH. All rights reserved. * * embedded brains GmbH * Dornierstr. 4 @@ -77,6 +77,19 @@ typedef struct { rtems_status_code rtems_bsd_initialize(void); +/** + * @brief Returns the initial priority for a task specified by its name. + * + * Applications may provide their own implementation of this function. For + * example they can define their implementation in the same module which calls + * rtems_bsd_initialize(). + * + * @param[in] name The task name. + * + * @return The desired initial task priority. + */ +rtems_task_priority rtems_bsd_get_task_priority(const char *name); + #ifdef __cplusplus } #endif /* __cplusplus */ |