Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Fucking pointers...

Name: Anonymous 2011-10-27 11:03

void prepare_lock (SDL_mutex ** global_lock)
{
SDL_mutex * lock = *global_lock;
if (lock == NULL)
{
// This works, obviously:
*global_lock = SDL_CreateMutex ();
// but this doesn't (so it's commented):
// lock = SDL_CreateMutex ();
}
}

When I run:

prepare_lock (&teh_lock);

How do I pointers?

Name: Anonymous 2011-10-28 21:10

>>16
hey it's not a person's fault if he or she reads a terrible tutorial

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List