4 ms·You could use thread_local variables these days for re-entrancy instead of the ctx->i idea.by 0db532a0 8y agoYou could use thread_local variables these days for re-entrancy instead of the ctx->i idea.guenthert 8y agoThread-local variables make it thread-safe, but still not re-entrant. That's ok, if you don't need more than one state per thread.0db532a0 8y agoYou’re right. Thanks.