{"id":326267,"date":"2021-02-07T03:15:30","date_gmt":"2021-02-06T19:15:30","guid":{"rendered":"http:\/\/4563.org\/?p=326267"},"modified":"2021-02-07T03:15:30","modified_gmt":"2021-02-06T19:15:30","slug":"golang-sync-cond-%e6%9d%a1%e4%bb%b6%e5%8f%98%e9%87%8f%e6%ba%90%e7%a0%81%e5%88%86%e6%9e%90","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=326267","title":{"rendered":"Golang sync.Cond \u6761\u4ef6\u53d8\u91cf\u6e90\u7801\u5206\u6790"},"content":{"rendered":"<div>\n<div>\n<div>\n<h1>                  Golang sync.Cond \u6761\u4ef6\u53d8\u91cf\u6e90\u7801\u5206\u6790               <\/h1>\n<p> <\/p>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : cyhone <\/span>  <span><i><\/i> 3<\/span> <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<\/p><\/div>\n<div isfirst=\"1\"> <\/p>\n<p>sync.Cond \u6761\u4ef6\u53d8\u91cf\u662f Golang \u6807\u51c6\u5e93 sync \u5305\u4e2d\u7684\u4e00\u4e2a\u5e38\u7528\u7c7b\u3002sync.Cond \u5f80\u5f80\u88ab\u7528\u5728\u4e00\u4e2a\u6216\u4e00\u7ec4 goroutine \u7b49\u5f85\u67d0\u4e2a\u6761\u4ef6\u6210\u7acb\u540e\u5524\u9192\u8fd9\u6837\u7684\u573a\u666f\uff0c\u4f8b\u5982\u5e38\u89c1\u7684\u751f\u4ea7\u8005\u6d88\u8d39\u8005\u573a\u666f\u3002<\/p>\n<p>\u672c\u6587\u5c06\u57fa\u4e8e go-1.13 \u7684\u6e90\u7801 \u5206\u6790 sync.Cond \u6e90\u7801\uff0c\u5c06\u4f1a\u6d89\u53ca\u4ee5\u4e0b\u77e5\u8bc6\u70b9:<\/p>\n<ul>\n<li>sync.Cond \u7684\u57fa\u672c\u7528\u6cd5<\/li>\n<li>sync.Cond \u7684\u5e95\u5c42\u7ed3\u6784\u53ca\u539f\u7406\u5206\u6790<\/li>\n<li>sync.Cond \u7684\u60ef\u7528\u6cd5\u53ca\u4f7f\u7528\u6ce8\u610f\u4e8b\u9879<\/li>\n<\/ul>\n<p>\u70b9\u51fb\u67e5\u770b\u539f\u6587: Golang sync.Cond \u6761\u4ef6\u53d8\u91cf\u6e90\u7801\u5206\u6790<\/p>\n<\/p><\/div>\n<div> <b>\u5927\u4f6c\u6709\u8a71\u8aaa<\/b> (<span>2<\/span>)        <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<ul>\n<li data-pid=\"5225402\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : textworld <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u5b66\u4e60\u4e86                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5225403\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : cyhone <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u539f\u6587\u94fe\u63a5\uff1a https:\/\/www.cyhone.com\/articles\/golang-sync-cond\/<br \/>\u6b22\u8fce\u5173\u6ce8\u516c\u4f17\u53f7\uff1a\u7f16\u7a0b\u6c89\u601d\u5f55                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li>\n","protected":false},"excerpt":{"rendered":"<p>Golang sync.Cond &hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[],"tags":[],"_links":{"self":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/326267"}],"collection":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=326267"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/326267\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=326267"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=326267"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=326267"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}