瀏覽代碼

Fixed example in header file.

Did not compile because of typo in function name and missing argument.
Philipp Wiesemann 11 年之前
父節點
當前提交
0b98d0cb8a
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      include/SDL_thread.h

+ 2 - 2
include/SDL_thread.h

@@ -233,9 +233,9 @@ extern DECLSPEC void SDLCALL SDL_DetachThread(SDL_Thread * thread);
  *          if (!thread_local_storage) {
  *              thread_local_storage = SDL_TLSCreate();
  *          }
- *          SDL_AtomicUnLock(&tls_lock);
+ *          SDL_AtomicUnlock(&tls_lock);
  *      }
- *      SDL_TLSSet(thread_local_storage, value);
+ *      SDL_TLSSet(thread_local_storage, value, 0);
  *  }
  *  
  *  void *GetMyThreadData(void)