SFML community forums

Help => System => Topic started by: Baschey on May 13, 2015, 03:30:46 pm

Title: Thread, function arguments
Post by: Baschey on May 13, 2015, 03:30:46 pm
Hi there !  :)
I have a problem with create Thread.

My function - void Func(ObjectSAi obj[],float time,ObjectS &object)


Thread TH(&Func,Mass,time,Player)//is not work(to many arguments of function, or wrong argument of function).

Pls help me  :) . How to pass arguments to functions ?
Title: Re: Thread, function arguments
Post by: Nexus on May 13, 2015, 04:00:04 pm
How to pass arguments to functions ?
I think you should spend some time learning the programming language before using SFML ;)

And there's also a documentation that says how the functions (in that case the sf::Thread constructor) are invoked.
Title: Re: Thread, function arguments
Post by: Baschey on May 13, 2015, 05:45:26 pm
Hmm strange, all right, i will use std :: thread.