| 60 | ****************************************************************************/ |
| 61 | |
| 62 | static int load_default_priority(FAR struct binary_s *bin) |
| 63 | { |
| 64 | struct sched_param param; |
| 65 | int ret; |
| 66 | |
| 67 | /* Get the priority of this thread */ |
| 68 | |
| 69 | ret = nxsched_get_param(0, ¶m); |
| 70 | if (ret < 0) |
| 71 | { |
| 72 | berr("ERROR: nxsched_get_param failed: %d\n", ret); |
| 73 | return ret; |
| 74 | } |
| 75 | |
| 76 | /* Save that as the priority of child thread */ |
| 77 | |
| 78 | bin->priority = param.sched_priority; |
| 79 | if (bin->priority <= 0) |
| 80 | { |
| 81 | bin->priority = SCHED_PRIORITY_DEFAULT; |
| 82 | } |
| 83 | |
| 84 | return ret; |
| 85 | } |
| 86 | |
| 87 | /**************************************************************************** |
| 88 | * Name: load_absmodule |
no test coverage detected