An threading example for libwebsockets in cpp