Skip to content
Eddie Kohler edited this page Oct 17, 2017 · 1 revision

SpinlockPush Element Documentation

NAME

SpinlockPush — Click element; acquires a spinlock, push the packets then release the lock

SYNOPSIS

SpinlockPush(LOCK)

Ports: 1 input, 1 output
Processing: push

DESCRIPTION

Acquires the spinlock named LOCK. LOCK must be defined in a SpinlockInfo element. The packet is then pushed through the pipeline and when the processing down the push path is done, releases the lock.

NOTES

Ensure that a push path will not be traversed by multiple threads at the same time while SpinlockAcquire/SpinlockRelease work for any path but do not support dropping packets between a SpinlockAcquire and a SpinlockRelease

SEE ALSO

SpinlockInfo, SpinlockAcquire, SpinlockRelease

Generated by click-elem2man from ../elements/threads/spinlockpush.hh:7 on 2017/10/17.

Clone this wiki locally