~ubuntu-branches/ubuntu/vivid/libsdl2/vivid

« back to all changes in this revision

Viewing changes to src/thread/SDL_thread.c

  • Committer: Package Import Robot
  • Author(s): Manuel A. Fernandez Montecelo, Felix Geyer
  • Date: 2013-12-28 12:31:19 UTC
  • mfrom: (1.1.3)
  • Revision ID: package-import@ubuntu.com-20131228123119-e0k27gckmnzskfgb
Tags: 2.0.1+dfsg1-1
* New upstream release (Closes: #728974)
  - Remove patch applied upstream:
    bug-723797-false_positives_in_mouse_wheel_code.patch
* Bump Standards-Version to 3.9.5, no changes needed.

[ Felix Geyer ]
* Import upstream gpg key for uscan to verify the orig tarball.

Show diffs side-by-side

added added

removed removed

Lines of Context:
125
125
    SDL_TLSEntry *entry;
126
126
    SDL_TLSData *storage = NULL;
127
127
 
 
128
#if !SDL_THREADS_DISABLED
128
129
    if (!SDL_generic_TLS_mutex) {
129
130
        static SDL_SpinLock tls_lock;
130
131
        SDL_AtomicLock(&tls_lock);
139
140
        }
140
141
        SDL_AtomicUnlock(&tls_lock);
141
142
    }
 
143
#endif /* SDL_THREADS_DISABLED */
142
144
 
143
145
    SDL_MemoryBarrierAcquire();
144
146
    SDL_LockMutex(SDL_generic_TLS_mutex);
148
150
            break;
149
151
        }
150
152
    }
 
153
#if !SDL_THREADS_DISABLED
151
154
    SDL_UnlockMutex(SDL_generic_TLS_mutex);
 
155
#endif
152
156
 
153
157
    return storage;
154
158
}