-
Notifications
You must be signed in to change notification settings - Fork 82
PathSpinlock
PathSpinlock — Click element; acquires a spinlock, push/pull the packets then release the lock
PathSpinlock(LOCK)
Ports: 1 or more inputs, the same number of outputs
Processing: agnostic
Acquires the spinlock named LOCK. LOCK must be defined in a SpinlockInfo element. In a push context, the packet is then pushed through the pipeline and when the processing down the push path is done, releases the lock. In a pull contextn, the pacjet us then pulled and before being returned, the lock is released.
Ensure that a push path or a pull part 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
SpinlockInfo, SpinlockAcquire, SpinlockRelease
Generated by click-elem2man from ../elements/threads/pathspinlock.hh:7
on 2018/08/06.