libSDL threads

Status
Not open for further replies.

jeremy

Ars Scholae Palatinae
784
Actually, I hadn't started the graphics portion of the code yet. I'd written a simple game in java, and a corresponding game server. Anyways, to teach myself SDL and to brush up on my C++, I decided to write the server and client in SDL all over again.

So.... What I was trying to do was assign multiple clients to individual threads. SDL has thread functions built in, so I would guess it's thread-safe.

My problem is that I'm just having problems with the threads and passing the running function to it, etc.

So, anyone know of a tutorial? I'd even settle for some well-documented example code somewhere. I've not pulled down a game written in SDL yet, but that's my next step. Unfortunately, I've got to get the stuff done that pays me first. :)
 
Status
Not open for further replies.