Does clang provide thread routines?

Hi, im having problems with my threading and clang, im using windows
_beginthreadex.

Is this ok?

When I quit my app, it throws an error "Pure virtual function call."
Does clang provide its own thread routines?

The most common cause I've seen for that runtime error is calling a pure virtual function for a type inside that type's constructor. Since the concrete type hasn't been fully constructed yet, there is way to call the virtual's implementation.

Doesn't really sound like your problem, but it's worth a look.