1<HTML 2><HEAD 3><TITLE 4>SDL_ThreadID</TITLE 5><META 6NAME="GENERATOR" 7CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+ 8"><LINK 9REL="HOME" 10TITLE="SDL Library Documentation" 11HREF="index.html"><LINK 12REL="UP" 13TITLE="Multi-threaded Programming" 14HREF="thread.html"><LINK 15REL="PREVIOUS" 16TITLE="SDL_CreateThread" 17HREF="sdlcreatethread.html"><LINK 18REL="NEXT" 19TITLE="SDL_GetThreadID" 20HREF="sdlgetthreadid.html"></HEAD 21><BODY 22CLASS="REFENTRY" 23BGCOLOR="#FFF8DC" 24TEXT="#000000" 25LINK="#0000ee" 26VLINK="#551a8b" 27ALINK="#ff0000" 28><DIV 29CLASS="NAVHEADER" 30><TABLE 31SUMMARY="Header navigation table" 32WIDTH="100%" 33BORDER="0" 34CELLPADDING="0" 35CELLSPACING="0" 36><TR 37><TH 38COLSPAN="3" 39ALIGN="center" 40>SDL Library Documentation</TH 41></TR 42><TR 43><TD 44WIDTH="10%" 45ALIGN="left" 46VALIGN="bottom" 47><A 48HREF="sdlcreatethread.html" 49ACCESSKEY="P" 50>Prev</A 51></TD 52><TD 53WIDTH="80%" 54ALIGN="center" 55VALIGN="bottom" 56></TD 57><TD 58WIDTH="10%" 59ALIGN="right" 60VALIGN="bottom" 61><A 62HREF="sdlgetthreadid.html" 63ACCESSKEY="N" 64>Next</A 65></TD 66></TR 67></TABLE 68><HR 69ALIGN="LEFT" 70WIDTH="100%"></DIV 71><H1 72><A 73NAME="SDLTHREADID" 74></A 75>SDL_ThreadID</H1 76><DIV 77CLASS="REFNAMEDIV" 78><A 79NAME="AEN7726" 80></A 81><H2 82>Name</H2 83>SDL_ThreadID -- Get the 32-bit thread identifier for the current thread.</DIV 84><DIV 85CLASS="REFSYNOPSISDIV" 86><A 87NAME="AEN7729" 88></A 89><H2 90>Synopsis</H2 91><DIV 92CLASS="FUNCSYNOPSIS" 93><A 94NAME="AEN7730" 95></A 96><P 97></P 98><PRE 99CLASS="FUNCSYNOPSISINFO" 100>#include "SDL.h" 101#include "SDL_thread.h"</PRE 102><P 103><CODE 104><CODE 105CLASS="FUNCDEF" 106>Uint32 <B 107CLASS="FSFUNC" 108>SDL_ThreadID</B 109></CODE 110>(void);</CODE 111></P 112><P 113></P 114></DIV 115></DIV 116><DIV 117CLASS="REFSECT1" 118><A 119NAME="AEN7736" 120></A 121><H2 122>Description</H2 123><P 124>Get the 32-bit thread identifier for the current thread.</P 125></DIV 126><DIV 127CLASS="NAVFOOTER" 128><HR 129ALIGN="LEFT" 130WIDTH="100%"><TABLE 131SUMMARY="Footer navigation table" 132WIDTH="100%" 133BORDER="0" 134CELLPADDING="0" 135CELLSPACING="0" 136><TR 137><TD 138WIDTH="33%" 139ALIGN="left" 140VALIGN="top" 141><A 142HREF="sdlcreatethread.html" 143ACCESSKEY="P" 144>Prev</A 145></TD 146><TD 147WIDTH="34%" 148ALIGN="center" 149VALIGN="top" 150><A 151HREF="index.html" 152ACCESSKEY="H" 153>Home</A 154></TD 155><TD 156WIDTH="33%" 157ALIGN="right" 158VALIGN="top" 159><A 160HREF="sdlgetthreadid.html" 161ACCESSKEY="N" 162>Next</A 163></TD 164></TR 165><TR 166><TD 167WIDTH="33%" 168ALIGN="left" 169VALIGN="top" 170>SDL_CreateThread</TD 171><TD 172WIDTH="34%" 173ALIGN="center" 174VALIGN="top" 175><A 176HREF="thread.html" 177ACCESSKEY="U" 178>Up</A 179></TD 180><TD 181WIDTH="33%" 182ALIGN="right" 183VALIGN="top" 184>SDL_GetThreadID</TD 185></TR 186></TABLE 187></DIV 188></BODY 189></HTML 190>