| Summary: | Expose thread handle for low-level use | ||
|---|---|---|---|
| Product: | SDL | Reporter: | Jeroen Roodhart <jeroen> |
| Component: | thread | Assignee: | Sam Lantinga <slouken> |
| Status: | RESOLVED FIXED | QA Contact: | Sam Lantinga <slouken> |
| Severity: | API change | ||
| Priority: | P2 | ||
| Version: | HG 2.0 | ||
| Hardware: | x86 | ||
| OS: | Linux | ||
| URL: | http://xbmc.org/trac/ticket/6145 | ||
|
Description
Jeroen Roodhart
2009-05-11 12:05:00 UTC
I'm kicking this to SDL 1.3 for consideration. We should probably use some sort of opaque pointer there (or at least a Uint64, so the system can cast it to a pointer). --ryan. Yeah, I'm okay with this. I want to add thread priority and CPU affinity too. Feel free to bounce this one to me if you want. I'll be giving the thread API some love, and I'll be working on how to represent this. Possibly as a void*. The thread ID type is now an unsigned long (SDL_threadID) which will hold the full pthread_t on 64-bit systems. In addition, I'll be adding some useful API functions so hopefully people will need to do this sort of thing less often. :) |