Greetings,
I’m wondering how to pass function parameter to a thread… if that’s is possible:
void ThreadServer(void *in_data)
{
}
Bool SFML_Network::ServerStart(const Char *in_name, UShort in_port)
{
sf::Thread l_thread(&ThreadServer, this);
….
Is there an elegant way that in_name and in_port being pass to ThreadServer? Besides making member or global variables.