MCPcopy Create free account
hub / github.com/F-Stack/f-stack / propagateTestThreadCommand

Function propagateTestThreadCommand

app/redis-6.2.6/tests/modules/propagate.c:126–138  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

124}
125
126int propagateTestThreadCommand(RedisModuleCtx *ctx, RedisModuleString **argv, int argc)
127{
128 REDISMODULE_NOT_USED(argv);
129 REDISMODULE_NOT_USED(argc);
130
131 pthread_t tid;
132 if (pthread_create(&tid,NULL,threadMain,NULL) != 0)
133 return RedisModule_ReplyWithError(ctx,"-ERR Can't start thread");
134 REDISMODULE_NOT_USED(tid);
135
136 RedisModule_ReplyWithSimpleString(ctx,"OK");
137 return REDISMODULE_OK;
138}
139
140int propagateTestSimpleCommand(RedisModuleCtx *ctx, RedisModuleString **argv, int argc)
141{

Callers

nothing calls this directly

Calls 1

pthread_createFunction · 0.50

Tested by

no test coverage detected