{"id":45,"date":"2014-08-23T23:59:49","date_gmt":"2014-08-23T15:59:49","guid":{"rendered":"http:\/\/blog.qdac.cc\/?p=45"},"modified":"2014-09-29T21:17:36","modified_gmt":"2014-09-29T13:17:36","slug":"qworker%e6%8a%80%e5%b7%a7%e4%b9%8b%e4%bd%9c%e4%b8%9a%e4%b8%8e%e4%b8%bb%e7%ba%bf%e7%a8%8b%e4%b9%8b%e9%97%b4%e9%80%9a%e8%ae%af","status":"publish","type":"post","link":"https:\/\/blog.qdac.cc\/?p=45","title":{"rendered":"QWorker\u6280\u5de7\u4e4b\u4f5c\u4e1a\u4e0e\u4e3b\u7ebf\u7a0b\u4e4b\u95f4\u901a\u8baf"},"content":{"rendered":"<p style=\"color: #454545;\">\u4f5c\u4e1a\u4e00\u822c\u5728\u540e\u53f0\u7ebf\u7a0b\u4e2d\u8fdb\u884c\uff0c\u4f46\u5f53\u5176\u9700\u8981\u548c\u4e3b\u7ebf\u7a0b\u4ea4\u4e92\u65f6\uff0c\u6709\u591a\u79cd\u65b9\u6cd5\u53ef\u4ee5\u5b8c\u6210\uff0c\u8fd9\u91cc\u5217\u51fa\u5e38\u89c1\u76843\u79cd\uff1a<\/p>\n<p style=\"color: #454545;\">1\u3001\u76f4\u63a5\u4f7f\u7528\u4e00\u4e2a\u5728\u4e3b\u7ebf\u7a0b\u6267\u884c\u7684\u65b0\u7684\u4f5c\u4e1a\uff0c\u7136\u540e\u5c06\u53c2\u6570\u505a\u4e3aData\u4f20\u9012\u5230\u65b0\u7684\u4f5c\u4e1a\u4e2d\u3002\u81f3\u4e8e\u53c2\u6570Data\u7684\u5185\u5bb9\uff0c\u5219\u4e0d\u5728\u8ba8\u8bba\u4e4b\u5217\u3002\u4f46\u8fd9\u79cd\u65b9\u5f0f\u4e0d\u4f1a\u7b49\u5f85\u65b0\u6295\u5bc4\u7684\u4f5c\u4e1a\u5b8c\u6210\uff08\u5b9e\u9645\u4e0a\u7edd\u5927\u591a\u6570\u60c5\u51b5\u4e0b\u6211\u4eec\u5e94\u5c3d\u91cf\u907f\u514d\u957f\u65f6\u95f4\u5360\u7528\u5de5\u4f5c\u8005\u8d44\u6e90\uff0c\u4e3a\u5176\u5b83\u5de5\u4f5c\u8005\u7559\u51fa\u8d44\u6e90\u6765\u6267\u884c\u66f4\u591a\u4f5c\u4e1a\uff09\uff0c\u8981\u60f3\u7b49\u5f85\u4f5c\u4e1a\u5b8c\u6210\uff0c\u9700\u8981\u4f7f\u7528TQJobGroup\uff0c\u5b83\u5b9e\u73b0\u4e86Wait\u65b9\u6cd5\u6765\u7b49\u5f85\u4f5c\u4e1a\u5b8c\u6210\u6216\u88ab\u53d6\u6d88\u3002<\/p>\n<p style=\"color: #454545;\">2\u3001\u76f4\u63a5\u4f7f\u7528PostMessage\u6216SendMessage\u7b49\u6d88\u606f\u6765\u4e0e\u4e3b\u7ebf\u7a0b\u901a\u8baf\uff0c\u53c2\u6570\u901a\u8fc7\u6d88\u606f\u7684WParam\u548cLParam\u6765\u4f20\u9012\uff0c\u4f46\u8fd9\u53ea\u9002\u7528\u4e8eWindows\u7684VCL\u5e73\u53f0\u3002<\/p>\n<p style=\"color: #454545;\">3\u3001\u4f7f\u7528PQJob\u7684Worker.Synchronize\u51fd\u6570\uff0c\u8fd9\u4e2a\u65b9\u6cd5\u5b9e\u9645\u4e0a\u5c31\u662f\u7ebf\u7a0b\u7684\u540c\u6b65\u8c03\u7528\u65b9\u6cd5\uff0c\u4f1a\u7b49\u5f85\u4e3b\u7ebf\u7a0b\u51fd\u6570\u6267\u884c\u5b8c\u6210\u540e\u624d\u80fd\u7ee7\u7eed\u4e0b\u4e00\u6b65\u3002<\/p>\n<h4 style=\"color: #454545;\">\u3010\u63a8\u8350\u3011<\/h4>\n<p style=\"color: #454545;\">\u63a8\u8350\u91c7\u7528\u7b2c\u4e00\u79cd\u7684\u5f02\u6b65\u65b9\u5f0f\uff0c\u56e0\u4e3a\u4f5c\u4e1a\u8fd9\u53ef\u4ee5\u6700\u5927\u5316\u5de5\u4f5c\u8005\u7684\u5de5\u4f5c\u8d1f\u8377\uff0c\u63d0\u9ad8\u8fd0\u884c\u6548\u7387\u3002\u800c\u4e14\u8fd9\u79cd\u5206\u6b65\u9aa4\u7684\u4f5c\u4e1a\u4e4b\u95f4\uff0c\u901a\u8fc7Data\u6210\u5458\uff0c\u53ef\u4ee5\u5f88\u5bb9\u6613\u7684\u5206\u4eab\u6570\u636e\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4f5c\u4e1a\u4e00\u822c\u5728\u540e\u53f0\u7ebf\u7a0b\u4e2d\u8fdb\u884c\uff0c\u4f46\u5f53\u5176\u9700\u8981\u548c\u4e3b [&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":[8,6],"tags":[11],"class_list":["post-45","post","type-post","status-publish","format-standard","hentry","category-delphi","category-qworker","tag-11"],"views":5784,"_links":{"self":[{"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=\/wp\/v2\/posts\/45","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=45"}],"version-history":[{"count":2,"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=\/wp\/v2\/posts\/45\/revisions"}],"predecessor-version":[{"id":801,"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=\/wp\/v2\/posts\/45\/revisions\/801"}],"wp:attachment":[{"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=45"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=45"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=45"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}