mirror of
https://github.com/SFML/SFML.git
synced 2024-11-28 22:31:09 +08:00
Fixed compile errors in sfml-system on Linux
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1038 4e206d99-4929-0410-ac5d-dfc041789085
This commit is contained in:
parent
125daf062f
commit
f9e24c6ec5
@ -40,7 +40,7 @@ namespace priv
|
|||||||
ThreadImpl::ThreadImpl(Thread* Owner) :
|
ThreadImpl::ThreadImpl(Thread* Owner) :
|
||||||
myIsActive(true)
|
myIsActive(true)
|
||||||
{
|
{
|
||||||
myIsActive = pthread_create(&myThread, NULL, &ThreadFunc, Owner) == 0;
|
myIsActive = pthread_create(&myThread, NULL, &ThreadImpl::EntryPoint, Owner) == 0;
|
||||||
|
|
||||||
if (!myIsActive)
|
if (!myIsActive)
|
||||||
std::cerr << "Failed to create thread" << std::endl;
|
std::cerr << "Failed to create thread" << std::endl;
|
||||||
@ -73,7 +73,7 @@ void ThreadImpl::Terminate()
|
|||||||
////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////
|
||||||
/// Global entry point for all threads
|
/// Global entry point for all threads
|
||||||
////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////
|
||||||
void* ThreadFunc(void* UserData)
|
void* ThreadImpl::EntryPoint(void* UserData)
|
||||||
{
|
{
|
||||||
// The Thread instance is stored in the user data
|
// The Thread instance is stored in the user data
|
||||||
Thread* Owner = static_cast<Thread*>(UserData);
|
Thread* Owner = static_cast<Thread*>(UserData);
|
||||||
|
Loading…
Reference in New Issue
Block a user