| 219 | } |
| 220 | |
| 221 | static bool bootstrap_fake_unlock(void *opaque, cbm_daemon_bootstrap_lock_t *lock_io) { |
| 222 | bootstrap_fake_ops_t *fake = opaque; |
| 223 | if (lock_io && *lock_io == fake) { |
| 224 | atomic_store(&fake->lock_held, 0); |
| 225 | *lock_io = NULL; |
| 226 | return true; |
| 227 | } |
| 228 | return lock_io && !*lock_io; |
| 229 | } |
| 230 | |
| 231 | static bool bootstrap_fake_handoff(void *opaque, cbm_daemon_bootstrap_lock_t lock) { |
| 232 | bootstrap_fake_ops_t *fake = opaque; |
nothing calls this directly
no outgoing calls
no test coverage detected