| 508 | ****************************************************************************/ |
| 509 | |
| 510 | int work_queue_priority_wq(FAR struct kwork_wqueue_s *wqueue) |
| 511 | { |
| 512 | FAR struct kworker_s *worker; |
| 513 | FAR struct tcb_s *tcb; |
| 514 | |
| 515 | if (wqueue == NULL) |
| 516 | { |
| 517 | return -EINVAL; |
| 518 | } |
| 519 | |
| 520 | /* Find for the TCB associated with matching PID */ |
| 521 | |
| 522 | worker = wq_get_worker(wqueue); |
| 523 | |
| 524 | tcb = nxsched_get_tcb(worker[0].pid); |
| 525 | |
| 526 | if (!tcb) |
| 527 | { |
| 528 | return -ESRCH; |
| 529 | } |
| 530 | |
| 531 | return tcb->sched_priority; |
| 532 | } |
| 533 | |
| 534 | int work_queue_priority(int qid) |
| 535 | { |
no test coverage detected