| 270 | } |
| 271 | |
| 272 | bool fiber::kill(bool sync) |
| 273 | { |
| 274 | if (f_ == NULL) { |
| 275 | return false; |
| 276 | } else if (acl_fiber_killed(f_)) { |
| 277 | return true; |
| 278 | } |
| 279 | if (sync) { |
| 280 | acl_fiber_kill_wait(f_); |
| 281 | } else { |
| 282 | acl_fiber_kill(f_); |
| 283 | } |
| 284 | return true; |
| 285 | } |
| 286 | |
| 287 | bool fiber::killed() const |
| 288 | { |
no test coverage detected