Home

Traffic Server Software Developers Kit

INKContCreate

Creates a continuation.

Prototype

INKCont INKContCreate (INKEventFunc funcp, INKMutex mutexp)

Description

Creates a new INKCont object. The continuation’s handler function is funcp and its mutex is mutexp. As mentioned previously, a continuation’s mutex can be NULL - this is accomplished by specifying NULL for mutexp.

[Note] Note

If you specify a NULL mutex, then a mutex is created for the continuation and this mutex is held when the continuation is called back.

Returns

A handle to the newly-created continuation.

INK_ERROR_PTR if the INKCont object is not successfully created.