{"id":1391,"date":"2014-12-05T17:38:20","date_gmt":"2014-12-05T09:38:20","guid":{"rendered":"http:\/\/blog.qdac.cc\/?p=1391"},"modified":"2014-12-05T17:38:20","modified_gmt":"2014-12-05T09:38:20","slug":"qworker%e6%9b%b4%e6%96%b0-tqjobgroup-cancel%e5%8a%a0%e5%85%a5%e6%98%af%e5%90%a6%e7%ad%89%e5%be%85%e5%8f%82%e6%95%b0","status":"publish","type":"post","link":"https:\/\/blog.qdac.cc\/?p=1391","title":{"rendered":"QWorker\u66f4\u65b0-TQJobGroup.Cancel\u52a0\u5165\u662f\u5426\u7b49\u5f85\u53c2\u6570"},"content":{"rendered":"<h4>\u3010\u66f4\u65b0\u5185\u5bb9\u3011<\/h4>\n<p>TQJobGroup.Cancel\u51fd\u6570\u9ed8\u8ba4\u662f\u7b49\u5f85\u6b63\u5728\u8fd0\u884c\u7684\u4f5c\u4e1a\u5b8c\u6210\u540e\u624d\u4f1a\u9000\u51fa\uff0c\u800c\u8fd9\u4f1a\u9020\u6210\u5982\u679c\u5728TQJobGroup\u7684\u4f5c\u4e1a\u4e2d\u8c03\u7528Cancel\u51fd\u6570\u65f6\uff0c\u4f1a\u9677\u5165\u6b7b\u5faa\u73af\u65e0\u6cd5\u9000\u51fa\u7684\u95ee\u9898\u3002\u901a\u8fc7\u52a0\u5165\u4e00\u4e2a\u5e03\u5c14\u53c2\u6570\u4ee5\u51b3\u5b9a\u662f\u5426\u7b49\u5f85\u53ef\u4ee5\u66f4\u65b9\u4fbf\u7684\u8c03\u7528Cancel\u51fd\u6570\u3002<\/p>\n<p>\u5728\u5206\u7ec4\u4f5c\u4e1a\u7684\u4f5c\u4e1a\u51fd\u6570\u4e2d\uff0c\u4e0b\u9762\u7684\u4ee3\u7801\u662f\u9519\u8bef\u7684\uff1a<\/p>\n<pre class=\"lang:delphi decode:true \">procedure TForm1.DoGroupJob(AJob:PQJob);\r\nbegin\r\nTQJobGroup(AJob.Group).Cancel;\r\nend;\r\n<\/pre>\n<p>\u4e0b\u9762\u7684\u4ee3\u7801\u4e5f\u662f\u9519\u8bef\u7684\uff1a<\/p>\n<pre class=\"lang:delphi decode:true \">procedure TForm1.DoGroupJob(AJob:PQJob);\r\nbegin\r\nTQJobGroup(AJob.Group).Cancel(True);\r\nend;<\/pre>\n<p>\u800c\u4e0b\u9762\u7684\u4ee3\u7801\u662f\u6b63\u786e\u7684\uff1a<\/p>\n<pre class=\"lang:delphi decode:true \">procedure TForm1.DoGroupJob(AJob:PQJob);\r\nbegin\r\nTQJobGroup(AJob.Group).Cancel(False);\r\nend;<\/pre>\n<h4>\u00a0\u3010\u66f4\u65b0\u7ea7\u522b\u3011<\/h4>\n<p>\u53ef\u9009<\/p>\n<h4>\u3010\u7279\u522b\u611f\u8c22\u3011<\/h4>\n<p>\u6062\u5f18<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u3010\u66f4\u65b0\u5185\u5bb9\u3011 TQJobGroup.Ca [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[69,8,9,6],"tags":[],"class_list":["post-1391","post","type-post","status-publish","format-standard","hentry","category-c-builder","category-delphi","category-qdac","category-qworker"],"views":2328,"_links":{"self":[{"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=\/wp\/v2\/posts\/1391","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1391"}],"version-history":[{"count":1,"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=\/wp\/v2\/posts\/1391\/revisions"}],"predecessor-version":[{"id":1392,"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=\/wp\/v2\/posts\/1391\/revisions\/1392"}],"wp:attachment":[{"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1391"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1391"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1391"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}