| 86 | } |
| 87 | |
| 88 | void |
| 89 | TSContThreadAffinity_test() |
| 90 | { |
| 91 | TSCont contp = TSContCreate(TSContThreadAffinity_handler, TSMutexCreate()); |
| 92 | |
| 93 | if (contp == nullptr) { |
| 94 | Dbg(dbg_ctl_schd, "[%s] could not create continuation", plugin_name); |
| 95 | abort(); |
| 96 | } else { |
| 97 | Dbg(dbg_ctl_schd, "[%s] scheduling continuation", plugin_name); |
| 98 | TSContScheduleOnPool(contp, 0, TS_THREAD_POOL_NET); |
| 99 | } |
| 100 | } |
| 101 | |
| 102 | static int |
| 103 | TSContScheduleOnPool_handler_1(TSCont /* contp ATS_UNUSED */, TSEvent /* event ATS_UNUSED */, void * /* edata ATS_UNUSED */) |
no test coverage detected