| 140 | } |
| 141 | |
| 142 | rt_err_t lwp_pgrp_critical_enter(struct rt_processgroup *pgrp, int flags) |
| 143 | { |
| 144 | rt_err_t rc; |
| 145 | do { |
| 146 | rc = lwp_mutex_take_safe(&pgrp->mutex, RT_WAITING_FOREVER, flags); |
| 147 | } while (rc != RT_EOK && !(flags & LWP_MTX_FLAGS_INTR) && rc == -RT_EINTR); |
| 148 | |
| 149 | /* if current process is force killed */ |
| 150 | if (rc != RT_EOK && rc != -RT_EINTR) |
| 151 | { |
| 152 | LOG_I("%s: unexpected return code = %ld", __func__, rc); |
| 153 | } |
| 154 | |
| 155 | return rc; |
| 156 | } |
| 157 | |
| 158 | rt_err_t lwp_pgrp_critical_exit(struct rt_processgroup *pgrp) |
| 159 | { |
nothing calls this directly
no test coverage detected