Skip to main content

Name

ec_spool_ctx_lock — Lock a spool context

Synopsis

#include "spool.h"

| int **ec_spool_ctx_lock** ( | ctx); |   |

ec_spool_ctx * <var class="pdparam">ctx</var>;

Description

Lock a spool context.

Parameters

ctx

The spool context to lock.

Return Values

Returns 0 on success, or the pid of the process that holds the lock. On error it returns -1.

Threading

It is legal to call this function in the Scheduler thread.

See Also

Was this page helpful?