Go to the source code of this file.
◆ ERR_MAX_ARGS
◆ ERR_MAX_STRLEN
#define ERR_MAX_STRLEN 128 |
◆ SDL_GetErrBuf()
Definition at line 206 of file SDL_thread.c.
207{
214
215
216
217
218
219 if (!tls_errbuf && !tls_being_created) {
221 if (!tls_errbuf) {
227 tls_errbuf = slot;
228 }
230 }
231 if (!tls_errbuf) {
232 return &SDL_global_errbuf;
233 }
234
237 if (errbuf == ALLOCATION_IN_PROGRESS) {
238 return &SDL_global_errbuf;
239 }
240 if (!errbuf) {
241
244 if (!errbuf) {
246 return &SDL_global_errbuf;
247 }
250 }
251 return errbuf;
252}
#define SDL_MemoryBarrierRelease()
#define SDL_MemoryBarrierAcquire()
void * SDL_TLSGet(SDL_TLSID id)
Get the value associated with a thread local storage ID for the current thread.
SDL_TLSID SDL_TLSCreate()
Create an identifier that is globally visible to all threads but refers to data that is thread-specif...
int SDL_TLSSet(SDL_TLSID id, const void *value, void(*destructor)(void *))
Set the value associated with a thread local storage ID for the current thread.