Skip to main content

splinter_shard_claim_ex

Function splinter_shard_claim_ex 

Source
pub unsafe extern "C" fn splinter_shard_claim_ex(
    shard_id: u32,
    pid: u32,
    intent: u8,
    priority: u8,
    duration_tsc: u64,
    claimed_at: u64,
) -> c_int
Expand description

@brief Advanced/testing claim: explicit pid and claimed_at.

Identical to splinter_shard_claim() but lets a supervisor register a bid on behalf of another process, and lets tests construct deterministic election scenarios without sleeping. Production shards should prefer splinter_shard_claim(). @return as splinter_shard_claim().