Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: SFML 2.0 Threads  (Read 2365 times)

0 Members and 2 Guests are viewing this topic.

vidjogamer

  • Jr. Member
  • **
  • Posts: 67
    • View Profile
SFML 2.0 Threads
« on: March 16, 2011, 03:24:08 am »
I tried the examples from 1.6 but I get this error:

error C2512: 'sf::Thread' : no appropriate default constructor available

Code: [Select]
class MyClass : private sf::Thread
{
public :

    void DoSomething()
    {
        Launch();
    }

private :

    virtual void Run()
    {
        // Do something...
    }
};

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
SFML 2.0 Threads
« Reply #1 on: March 16, 2011, 08:01:25 am »
Laurent Gomila - SFML developer