MCPcopy Create free account
hub / github.com/apache/trafficserver / trylock_handler

Function trylock_handler

example/plugins/c-api/thread_pool/psi.cc:832–840  ·  view source on GitHub ↗

------------------------------------------------------------------------- trylock_handler Small handler to handle TSMutexLockTry failures Input: contp continuation for the current transaction event event received data pointer on optional data Output : Return Value: -------------------------------------------------------------------------*/

Source from the content-addressed store, hash-verified

830 Return Value:
831 -------------------------------------------------------------------------*/
832static int
833trylock_handler(TSCont contp, TSEvent event ATS_UNUSED, void *edata ATS_UNUSED)
834{
835 auto data = static_cast<TryLockData *>(TSContDataGet(contp));
836 transform_handler(data->contp, data->event, nullptr);
837 TSfree(data);
838 TSContDestroy(contp);
839 return 0;
840}
841
842/*-------------------------------------------------------------------------
843 transformable

Callers

nothing calls this directly

Calls 4

TSContDataGetFunction · 0.85
TSfreeFunction · 0.85
TSContDestroyFunction · 0.85
transform_handlerFunction · 0.70

Tested by

no test coverage detected