| 40 | } |
| 41 | |
| 42 | static int |
| 43 | thread_plugin(TSCont contp ATS_UNUSED, TSEvent event, void *edata) |
| 44 | { |
| 45 | switch (event) { |
| 46 | case TS_EVENT_HTTP_OS_DNS: |
| 47 | /** |
| 48 | * Check if the thread has been created successfully or not. |
| 49 | * If the thread has not been created successfully, assert. |
| 50 | */ |
| 51 | if (!TSThreadCreate(reenable_txn, edata)) { |
| 52 | TSReleaseAssert(!PLUGIN_NAME " - Failure in thread creation"); |
| 53 | } |
| 54 | return 0; |
| 55 | default: |
| 56 | break; |
| 57 | } |
| 58 | return 0; |
| 59 | } |
| 60 | |
| 61 | void |
| 62 | TSPluginInit(int argc ATS_UNUSED, const char *argv[] ATS_UNUSED) |
nothing calls this directly
no test coverage detected