\doxysection{ql\+\_\+thread.\+dox.\+h}
\hypertarget{ql__thread_8dox_8h_source}{}\label{ql__thread_8dox_8h_source}
\begin{DoxyCode}{0}
\DoxyCodeLine{00001\ }
\DoxyCodeLine{00003\ \textcolor{keyword}{namespace\ }\mbox{\hyperlink{namespace_qore}{Qore}}\ \{}
\DoxyCodeLine{00005\ }
\DoxyCodeLine{00007\ \textcolor{keyword}{struct\ }\mbox{\hyperlink{struct_qore_1_1_call_stack_info}{CallStackInfo}}\ \{}
\DoxyCodeLine{00009\ \ \ \ \ \textcolor{keywordtype}{int}\ \mbox{\hyperlink{struct_qore_1_1_call_stack_info_a9a2635864b59ecbb2e4100653ae590e8}{endline}};}
\DoxyCodeLine{00011\ \ \ \ \ \textcolor{keywordtype}{string}\ \mbox{\hyperlink{struct_qore_1_1_call_stack_info_ab16d73f8c1f1c029f33762cecbbd6346}{file}};}
\DoxyCodeLine{00013\ \ \ \ \ \textcolor{keywordtype}{string}\ \mbox{\hyperlink{struct_qore_1_1_call_stack_info_a8fc47a1c77bcaee88c67a1ed1d9b5e91}{function}};}
\DoxyCodeLine{00015\ \ \ \ \ \textcolor{keywordtype}{string}\ \mbox{\hyperlink{struct_qore_1_1_call_stack_info_a667b9b477523bb1383d6e5fb59cb5a9f}{lang}};}
\DoxyCodeLine{00017\ \ \ \ \ \textcolor{keywordtype}{int}\ \mbox{\hyperlink{struct_qore_1_1_call_stack_info_a35a2b7806cc333cf1e306e1adfac1771}{line}};}
\DoxyCodeLine{00019\ \ \ \ \ \textcolor{keywordtype}{int}\ \mbox{\hyperlink{struct_qore_1_1_call_stack_info_a75f754692ac785b55ec4b581c79c3239}{offset}};}
\DoxyCodeLine{00021\ \ \ \ \ *\textcolor{keywordtype}{int}\ \mbox{\hyperlink{struct_qore_1_1_call_stack_info_af920c5d7e526e62e35e476f313c8d919}{programid}};}
\DoxyCodeLine{00023\ \ \ \ \ \textcolor{keywordtype}{string}\ \mbox{\hyperlink{struct_qore_1_1_call_stack_info_aa0af4530f0fdcae4af5d4832b33c6052}{source}};}
\DoxyCodeLine{00025\ \ \ \ \ *\textcolor{keywordtype}{int}\ \mbox{\hyperlink{struct_qore_1_1_call_stack_info_a480a0d4851c898c5a96f9883164e851d}{statementid}};}
\DoxyCodeLine{00027\ \ \ \ \ \textcolor{keywordtype}{string}\ \mbox{\hyperlink{struct_qore_1_1_call_stack_info_aeb882a998726c6b430861b440ebd7af2}{type}};}
\DoxyCodeLine{00029\ \ \ \ \ \textcolor{keywordtype}{int}\ \mbox{\hyperlink{struct_qore_1_1_call_stack_info_a6d8d1cc307ede76d91eb0f3ca905ca9b}{typecode}};}
\DoxyCodeLine{00030\ \};}
\DoxyCodeLine{00031\ \}}
\DoxyCodeLine{00032\ }
\DoxyCodeLine{00034\ \textcolor{keyword}{namespace\ }\mbox{\hyperlink{namespace_qore}{Qore}}\ \{}
\DoxyCodeLine{00039\ }
\DoxyCodeLine{00041\ }
\DoxyCodeLine{00050\ \textcolor{keywordtype}{bool}\ \mbox{\hyperlink{group__threading__functions_ga6bbd8315a329d9c5cbd04c8fe6f287a8}{active\_exception}}();}
\DoxyCodeLine{00051\ }
\DoxyCodeLine{00053\ }
\DoxyCodeLine{00063\ \mbox{\hyperlink{group__type__conversion__functions_ga9a401e5112c58f63c05e7ee1e15968ef}{nothing}}\ \mbox{\hyperlink{group__threading__functions_ga67572bb3364b4af9d37226948fb680c5}{delete\_all\_thread\_data}}();}
\DoxyCodeLine{00064\ }
\DoxyCodeLine{00066\ }
\DoxyCodeLine{00083\ \mbox{\hyperlink{group__type__conversion__functions_ga9a401e5112c58f63c05e7ee1e15968ef}{nothing}}\ \mbox{\hyperlink{group__threading__functions_ga7fecb4c50726c994a9cdaf1d3284e5b4}{delete\_thread\_data}}(\ ...);}
\DoxyCodeLine{00084\ }
\DoxyCodeLine{00086\ }
\DoxyCodeLine{00103\ \mbox{\hyperlink{group__type__conversion__functions_ga9a401e5112c58f63c05e7ee1e15968ef}{nothing}}\ \mbox{\hyperlink{group__threading__functions_ga7fecb4c50726c994a9cdaf1d3284e5b4}{delete\_thread\_data}}(\mbox{\hyperlink{group__type__conversion__functions_ga9a401e5112c58f63c05e7ee1e15968ef}{list<softstring>}}\ \mbox{\hyperlink{group__type__conversion__functions_ga9a401e5112c58f63c05e7ee1e15968ef}{l}});}
\DoxyCodeLine{00104\ }
\DoxyCodeLine{00106\ }
\DoxyCodeLine{00116\ \mbox{\hyperlink{group__type__conversion__functions_ga9a401e5112c58f63c05e7ee1e15968ef}{hash<string,list<hash<CallStackInfo>}}>>\ \mbox{\hyperlink{group__threading__functions_gacdf0fea58531a79a1e4d8f7638c6a2a9}{getAllThreadCallStacks}}();}
\DoxyCodeLine{00117\ }
\DoxyCodeLine{00119\ }
\DoxyCodeLine{00142\ \mbox{\hyperlink{group__type__conversion__functions_ga9a401e5112c58f63c05e7ee1e15968ef}{hash<string,list<hash<CallStackInfo>}}>>\ \mbox{\hyperlink{group__threading__functions_ga9332a28868cced9f3dbc9b3ac5c66152}{get\_all\_thread\_call\_stacks}}();}
\DoxyCodeLine{00143\ }
\DoxyCodeLine{00145\ }
\DoxyCodeLine{00160\ \mbox{\hyperlink{group__type__conversion__functions_ga9a401e5112c58f63c05e7ee1e15968ef}{hash<auto>}}\ \mbox{\hyperlink{group__threading__functions_ga82fa4af8804eef6236402bed90060811}{get\_all\_thread\_data}}();}
\DoxyCodeLine{00161\ }
\DoxyCodeLine{00163\ }
\DoxyCodeLine{00183\ \textcolor{keywordtype}{int}\ \mbox{\hyperlink{group__threading__functions_ga82d1b72e32a368be71b3b91462cbe0da}{get\_default\_thread\_stack\_size}}();}
\DoxyCodeLine{00184\ }
\DoxyCodeLine{00186\ }
\DoxyCodeLine{00194\ \mbox{\hyperlink{group__type__conversion__functions_ga9a401e5112c58f63c05e7ee1e15968ef}{\_\_7\_}}\ \mbox{\hyperlink{group__type__conversion__functions_ga9a401e5112c58f63c05e7ee1e15968ef}{hash<CallStackInfo>}}\ \mbox{\hyperlink{group__threading__functions_ga7700737ae9182e0b8ed57becedcc8bef}{get\_parent\_caller\_location}}(\textcolor{keywordtype}{int}\ offset\ =\ 1);}
\DoxyCodeLine{00195\ }
\DoxyCodeLine{00197\ }
\DoxyCodeLine{00220\ \textcolor{keywordtype}{int}\ \mbox{\hyperlink{group__threading__functions_gaa97833f603fb51b23fe0bb6c22b7f95f}{get\_stack\_size}}();}
\DoxyCodeLine{00221\ }
\DoxyCodeLine{00223\ }
\DoxyCodeLine{00245\ \mbox{\hyperlink{group__type__conversion__functions_ga9a401e5112c58f63c05e7ee1e15968ef}{list<hash<CallStackInfo>}}>\ \mbox{\hyperlink{group__threading__functions_ga89a7a372b30dc8c96a3edf0a174eaaa5}{get\_thread\_call\_stack}}();}
\DoxyCodeLine{00246\ }
\DoxyCodeLine{00248\ }
\DoxyCodeLine{00261\ \textcolor{keyword}{auto}\ \mbox{\hyperlink{group__threading__functions_gafe320b93634b056e4d36ad02086b0638}{get\_thread\_data}}(\textcolor{keywordtype}{string}\ \mbox{\hyperlink{group__type__conversion__functions_ga9a401e5112c58f63c05e7ee1e15968ef}{key}});}
\DoxyCodeLine{00262\ }
\DoxyCodeLine{00264\ }
\DoxyCodeLine{00271\ \mbox{\hyperlink{group__type__conversion__functions_ga9a401e5112c58f63c05e7ee1e15968ef}{nothing}}\ \mbox{\hyperlink{group__threading__functions_gafe320b93634b056e4d36ad02086b0638}{get\_thread\_data}}();}
\DoxyCodeLine{00272\ }
\DoxyCodeLine{00274\ }
\DoxyCodeLine{00297\ \mbox{\hyperlink{group__type__conversion__functions_ga9a401e5112c58f63c05e7ee1e15968ef}{\_\_7\_}}\ \textcolor{keywordtype}{string}\ \mbox{\hyperlink{group__threading__functions_ga79f9cd8de9606cae29c29e3b08d234f0}{get\_thread\_name}}();}
\DoxyCodeLine{00298\ }
\DoxyCodeLine{00300\ }
\DoxyCodeLine{00318\ \mbox{\hyperlink{group__type__conversion__functions_ga9a401e5112c58f63c05e7ee1e15968ef}{\_\_7\_}}\ \mbox{\hyperlink{class_qore_1_1_time_zone}{TimeZone}}\ \mbox{\hyperlink{group__threading__functions_gad86831d8ae7b5b1d35e9bb14dc9f6325}{get\_thread\_tz}}();}
\DoxyCodeLine{00319\ }
\DoxyCodeLine{00321\ }
\DoxyCodeLine{00336\ \textcolor{keywordtype}{int}\ \mbox{\hyperlink{group__threading__functions_ga95ed8e572309b44b3f5b49673238c3e6}{gettid}}();}
\DoxyCodeLine{00337\ }
\DoxyCodeLine{00339\ }
\DoxyCodeLine{00370\ \mbox{\hyperlink{group__type__conversion__functions_ga9a401e5112c58f63c05e7ee1e15968ef}{nothing}}\ \mbox{\hyperlink{group__threading__functions_gafa1c0f9e429a945b66fb261c7fa1b5bd}{mark\_thread\_resources}}();}
\DoxyCodeLine{00371\ }
\DoxyCodeLine{00373\ }
\DoxyCodeLine{00388\ \textcolor{keywordtype}{int}\ \mbox{\hyperlink{group__threading__functions_ga4bffba0876346fe5233ed4f5161c90d0}{num\_threads}}();}
\DoxyCodeLine{00389\ }
\DoxyCodeLine{00391\ }
\DoxyCodeLine{00406\ \mbox{\hyperlink{group__type__conversion__functions_ga9a401e5112c58f63c05e7ee1e15968ef}{\_\_7\_}}\ \mbox{\hyperlink{group__type__conversion__functions_ga9a401e5112c58f63c05e7ee1e15968ef}{hash<auto>}}\ \mbox{\hyperlink{group__threading__functions_ga7331a4636682b07d3edddea9225ab1f1}{remove\_thread\_data}}(\ ...);}
\DoxyCodeLine{00407\ }
\DoxyCodeLine{00409\ }
\DoxyCodeLine{00424\ \mbox{\hyperlink{group__type__conversion__functions_ga9a401e5112c58f63c05e7ee1e15968ef}{hash<auto>}}\ \mbox{\hyperlink{group__threading__functions_ga7331a4636682b07d3edddea9225ab1f1}{remove\_thread\_data}}(\mbox{\hyperlink{group__type__conversion__functions_ga9a401e5112c58f63c05e7ee1e15968ef}{list<softstring>}}\ \mbox{\hyperlink{group__type__conversion__functions_ga9a401e5112c58f63c05e7ee1e15968ef}{l}});}
\DoxyCodeLine{00425\ }
\DoxyCodeLine{00427\ }
\DoxyCodeLine{00449\ \textcolor{keywordtype}{bool}\ \mbox{\hyperlink{group__threading__functions_gadc994316e54fdf50111018de9bd15dc6}{remove\_thread\_resource}}(AbstractThreadResource\ \mbox{\hyperlink{group__type__conversion__functions_ga9a401e5112c58f63c05e7ee1e15968ef}{resource}});}
\DoxyCodeLine{00450\ }
\DoxyCodeLine{00452\ }
\DoxyCodeLine{00474\ \textcolor{keywordtype}{bool}\ \mbox{\hyperlink{group__threading__functions_gadc994316e54fdf50111018de9bd15dc6}{remove\_thread\_resource}}(code\ \mbox{\hyperlink{group__type__conversion__functions_ga9a401e5112c58f63c05e7ee1e15968ef}{resource}});}
\DoxyCodeLine{00475\ }
\DoxyCodeLine{00477\ }
\DoxyCodeLine{00491\ \mbox{\hyperlink{group__type__conversion__functions_ga9a401e5112c58f63c05e7ee1e15968ef}{nothing}}\ \mbox{\hyperlink{group__threading__functions_ga1da332e389e3083ba80d45aaec0525c6}{save\_thread\_data}}(\mbox{\hyperlink{group__type__conversion__functions_ga9a401e5112c58f63c05e7ee1e15968ef}{hash<auto>}}\ \mbox{\hyperlink{group__type__conversion__functions_ga9a401e5112c58f63c05e7ee1e15968ef}{h}});}
\DoxyCodeLine{00492\ }
\DoxyCodeLine{00494\ }
\DoxyCodeLine{00509\ \mbox{\hyperlink{group__type__conversion__functions_ga9a401e5112c58f63c05e7ee1e15968ef}{nothing}}\ \mbox{\hyperlink{group__threading__functions_ga1da332e389e3083ba80d45aaec0525c6}{save\_thread\_data}}(\textcolor{keywordtype}{string}\ \mbox{\hyperlink{group__type__conversion__functions_ga9a401e5112c58f63c05e7ee1e15968ef}{key}},\ \textcolor{keyword}{auto}\ \mbox{\hyperlink{group__type__conversion__functions_ga9a401e5112c58f63c05e7ee1e15968ef}{value}});}
\DoxyCodeLine{00510\ }
\DoxyCodeLine{00512\ }
\DoxyCodeLine{00519\ \mbox{\hyperlink{group__type__conversion__functions_ga9a401e5112c58f63c05e7ee1e15968ef}{nothing}}\ \mbox{\hyperlink{group__threading__functions_ga1da332e389e3083ba80d45aaec0525c6}{save\_thread\_data}}();}
\DoxyCodeLine{00520\ }
\DoxyCodeLine{00522\ }
\DoxyCodeLine{00542\ \textcolor{keywordtype}{int}\ \mbox{\hyperlink{group__threading__functions_gadbd86685c49fd7b4960b8b21e05cb2f0}{set\_default\_thread\_stack\_size}}(\textcolor{keywordtype}{int}\ size);}
\DoxyCodeLine{00543\ }
\DoxyCodeLine{00545\ }
\DoxyCodeLine{00567\ \textcolor{keywordtype}{bool}\ \mbox{\hyperlink{group__threading__functions_gae83c32576b59a1ecfa906d9b3c3af557}{set\_thread\_init}}(\mbox{\hyperlink{group__type__conversion__functions_ga9a401e5112c58f63c05e7ee1e15968ef}{\_\_7\_}}\ code\ \mbox{\hyperlink{group__type__conversion__functions_ga9a401e5112c58f63c05e7ee1e15968ef}{init}});}
\DoxyCodeLine{00568\ }
\DoxyCodeLine{00570\ }
\DoxyCodeLine{00586\ \mbox{\hyperlink{group__type__conversion__functions_ga9a401e5112c58f63c05e7ee1e15968ef}{nothing}}\ \mbox{\hyperlink{group__threading__functions_ga321040a3e764383dd68c50d496436e87}{set\_thread\_name}}(\textcolor{keywordtype}{string}\ name);}
\DoxyCodeLine{00587\ }
\DoxyCodeLine{00589\ }
\DoxyCodeLine{00609\ \mbox{\hyperlink{group__type__conversion__functions_ga9a401e5112c58f63c05e7ee1e15968ef}{nothing}}\ \mbox{\hyperlink{group__threading__functions_ga1a1fbc371cfc8885ed78e4bff25d35b1}{set\_thread\_resource}}(AbstractThreadResource\ \mbox{\hyperlink{group__type__conversion__functions_ga9a401e5112c58f63c05e7ee1e15968ef}{resource}});}
\DoxyCodeLine{00610\ }
\DoxyCodeLine{00612\ }
\DoxyCodeLine{00633\ \mbox{\hyperlink{group__type__conversion__functions_ga9a401e5112c58f63c05e7ee1e15968ef}{nothing}}\ \mbox{\hyperlink{group__threading__functions_ga1a1fbc371cfc8885ed78e4bff25d35b1}{set\_thread\_resource}}(code\ \mbox{\hyperlink{group__type__conversion__functions_ga9a401e5112c58f63c05e7ee1e15968ef}{resource}},\ \textcolor{keyword}{auto}\ arg);}
\DoxyCodeLine{00634\ }
\DoxyCodeLine{00636\ }
\DoxyCodeLine{00658\ \mbox{\hyperlink{group__type__conversion__functions_ga9a401e5112c58f63c05e7ee1e15968ef}{nothing}}\ \mbox{\hyperlink{group__threading__functions_ga21c1462b384cf6a52d20195bb3b6cf90}{set\_thread\_tz}}(\mbox{\hyperlink{class_qore_1_1_time_zone}{TimeZone}}\ zone);}
\DoxyCodeLine{00659\ }
\DoxyCodeLine{00661\ }
\DoxyCodeLine{00679\ \mbox{\hyperlink{group__type__conversion__functions_ga9a401e5112c58f63c05e7ee1e15968ef}{nothing}}\ \mbox{\hyperlink{group__threading__functions_ga21c1462b384cf6a52d20195bb3b6cf90}{set\_thread\_tz}}();}
\DoxyCodeLine{00680\ }
\DoxyCodeLine{00682\ }
\DoxyCodeLine{00699\ \mbox{\hyperlink{group__type__conversion__functions_ga9a401e5112c58f63c05e7ee1e15968ef}{list<int>}}\ \mbox{\hyperlink{group__threading__functions_ga9c9b1f442a9a3b63ad04cb6b116216b0}{thread\_list}}();}
\DoxyCodeLine{00700\ }
\DoxyCodeLine{00702\ }
\DoxyCodeLine{00712\ \mbox{\hyperlink{group__type__conversion__functions_ga9a401e5112c58f63c05e7ee1e15968ef}{nothing}}\ \mbox{\hyperlink{group__threading__functions_ga23d27aeac0640b070f964f2eb9f1cc8a}{thread\_yield}}();}
\DoxyCodeLine{00713\ }
\DoxyCodeLine{00715\ }
\DoxyCodeLine{00741\ \mbox{\hyperlink{group__type__conversion__functions_ga9a401e5112c58f63c05e7ee1e15968ef}{nothing}}\ \mbox{\hyperlink{group__threading__functions_ga401f0e787e79f2e4851d60b9223bb8d2}{throwThreadResourceExceptions}}();}
\DoxyCodeLine{00742\ }
\DoxyCodeLine{00744\ }
\DoxyCodeLine{00778\ \mbox{\hyperlink{group__type__conversion__functions_ga9a401e5112c58f63c05e7ee1e15968ef}{nothing}}\ \mbox{\hyperlink{group__threading__functions_ga421dca39ccb55b191d5d09fd98c2075a}{throw\_thread\_resource\_exceptions}}();}
\DoxyCodeLine{00779\ }
\DoxyCodeLine{00781\ }
\DoxyCodeLine{00816\ \textcolor{keywordtype}{bool}\ \mbox{\hyperlink{group__threading__functions_ga4e62409b8a1b414276d033267e7299e4}{throw\_thread\_resource\_exceptions\_to\_mark}}();}
\DoxyCodeLine{00817\ }
\DoxyCodeLine{00819\ \}}

\end{DoxyCode}
