Reputation: 9502
I use Boost Threads and SDL 1.2 now. I wonder if I would use SDL 2.* will I be able to run it not from main thread (on bouth windows and linux)?
Upvotes: 3
Views: 1985
Reputation: 2505
From a purely technical standpoint, there's no reason why you shouldn't be able to. I haven't used Boost Threads or SDL 2.*, however I have used SDL 1.2, SDL Threads, Windows Threads, and pthread. On Windows, the only snag I've run in to is that the thread that creates the SDL window has to be the thread that handles events. Other than that, there isn't any issues that I've run in to. I don't know if the same holds for Linux, because I always get my code working on Windows before porting it.
Upvotes: 4