{"id":359,"date":"2022-01-07T18:31:57","date_gmt":"2022-01-07T21:31:57","guid":{"rendered":"https:\/\/gladiston.net.br\/?page_id=359"},"modified":"2022-08-08T12:46:49","modified_gmt":"2022-08-08T15:46:49","slug":"uso-de-threads","status":"publish","type":"page","link":"https:\/\/gladiston.net.br\/en\/programacao\/lazarus-ide\/uso-de-threads\/","title":{"rendered":"Thread Usage"},"content":{"rendered":"<p>Para usar threads no Windows n\u00e3o \u00e9 necess\u00e1rio nenhum ajuste, mas no Linux voc\u00ea precisa ir em\u00a0<strong>Project->Options->Custom Options->Defines<\/strong>\u00a0and add the parameter\u00a0<strong>UseCThreads<\/strong>:<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/gladiston.github.io\/hello_lazarus\/assets\/consideracao_linux_threads1.png\" alt=\"\"\/><\/figure>\n\n\n\n<p>Se n\u00e3o fizer este ajuste, threads em seu sistema &#8211; e n\u00e3o importa se elas s\u00e3o anonimas ou convencionais &#8211; ser\u00e3o barradas e seu programa deixar\u00e1 de funcionar quando uma thread for acionada.<\/p>\n\n\n\n<p>If you are looking for examples on how to use threads, please read this other article titled <a href=\"https:\/\/gladiston.net.br\/en\/?page_id=358\" target=\"_blank\" rel=\"noreferrer noopener\" title=\"learning by example\">learning by example<\/a>, in it you will find many examples.<\/p>","protected":false},"excerpt":{"rendered":"<p>Para usar threads no Windows n\u00e3o \u00e9 necess\u00e1rio nenhum ajuste, mas no Linux voc\u00ea precisa ir em\u00a0Project->Options->Custom Options->Defines\u00a0e acrescentar o par\u00e2metro\u00a0UseCThreads: Se n\u00e3o fizer este ajuste, threads em seu sistema &#8211; e n\u00e3o importa se elas s\u00e3o anonimas ou convencionais &#8211; ser\u00e3o barradas e seu programa deixar\u00e1 de funcionar quando uma thread for acionada. Se [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":159,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"templates\/template-full-width.php","meta":{"footnotes":""},"class_list":["post-359","page","type-page","status-publish","hentry"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/gladiston.net.br\/en\/wp-json\/wp\/v2\/pages\/359","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/gladiston.net.br\/en\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/gladiston.net.br\/en\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/gladiston.net.br\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/gladiston.net.br\/en\/wp-json\/wp\/v2\/comments?post=359"}],"version-history":[{"count":5,"href":"https:\/\/gladiston.net.br\/en\/wp-json\/wp\/v2\/pages\/359\/revisions"}],"predecessor-version":[{"id":1961,"href":"https:\/\/gladiston.net.br\/en\/wp-json\/wp\/v2\/pages\/359\/revisions\/1961"}],"up":[{"embeddable":true,"href":"https:\/\/gladiston.net.br\/en\/wp-json\/wp\/v2\/pages\/159"}],"wp:attachment":[{"href":"https:\/\/gladiston.net.br\/en\/wp-json\/wp\/v2\/media?parent=359"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}