{"id":101174,"date":"2026-09-06T10:41:00","date_gmt":"2026-09-06T02:41:00","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/101174.html"},"modified":"2026-09-06T10:41:00","modified_gmt":"2026-09-06T02:41:00","slug":"%e6%8c%81%e9%94%81%e4%bb%bb%e5%8a%a1%e8%a2%ab%e5%88%a0%e5%af%bc%e8%87%b4%e6%ad%bb%e9%94%81%ef%bc%9a%e5%88%a0%e9%99%a4%e5%89%8d%e6%9c%aa%e9%87%8a%e6%94%be%e4%ba%92%e6%96%a5%e9%87%8f%ef%bc%8c%e5%88%a0","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/101174.html","title":{"rendered":"\u6301\u9501\u4efb\u52a1\u88ab\u5220\u5bfc\u81f4\u6b7b\u9501\uff1a\u5220\u9664\u524d\u672a\u91ca\u653e\u4e92\u65a5\u91cf\uff0c\u5220\u4efb\u52a1\u524d\u5148\u89e3\u6240\u6709\u5df2\u6301\u9501"},"content":{"rendered":"<h2>\u6301\u9501\u4efb\u52a1\u88ab\u5220\u5bfc\u81f4\u6b7b\u9501&#xff1a;\u5220\u9664\u524d\u672a\u91ca\u653e\u4e92\u65a5\u91cf&#xff0c;\u5220\u4efb\u52a1\u524d\u5148\u89e3\u6240\u6709\u5df2\u6301\u9501<\/h2>\n<p>\u6458\u8981&#xff1a;FreeRTOS \u4e2d\u76f4\u63a5\u5220\u9664\u4e00\u4e2a\u6301\u6709\u4e92\u65a5\u91cf\u7684\u4efb\u52a1&#xff0c;\u4f1a\u5bfc\u81f4\u8be5\u9501\u6c38\u8fdc\u5f52\u5c5e\u5df2\u6b7b\u4efb\u52a1&#xff0c;\u5176\u4ed6\u7b49\u5f85\u8005\u5168\u90e8\u6b7b\u9501\u3002\u672c\u6587\u7528\u4e00\u4e2a\u771f\u5b9e\u7ffb\u8f66\u73b0\u573a\u8bb2\u6e05\u6839\u56e0&#xff0c;\u7ed9\u51fa&#034;\u5220\u524d\u663e\u5f0f\u91ca\u653e\u6240\u6709\u9501&#034;\u4e0e&#034;\u53d1\u9000\u51fa\u4fe1\u53f7\u8ba9\u4efb\u52a1\u81ea\u5220&#034;\u4e24\u79cd\u6b63\u786e\u89e3\u6cd5&#xff0c;\u5e76\u9644\u53ef\u76f4\u63a5\u7f16\u8bd1\u7684 C \u4ee3\u7801\u4e0e\u5b9e\u6d4b\u5bf9\u6bd4&#xff0c;\u5e2e\u4f60\u5f7b\u5e95\u907f\u5f00\u8fd9\u4e2a\u5076\u53d1\u4e14\u6781\u96be\u6392\u67e5\u7684\u5751\u3002<\/p>\n<h3>\u4e00\u3001\u5f00\u7bc7&#xff1a;\u4e00\u4e2a\u771f\u5b9e\u7ffb\u8f66\u73b0\u573a<\/h3>\n<p>\u4e00\u53f0\u8bbe\u5907\u7528 FreeRTOS&#xff0c;\u8fd0\u884c\u4e2d\u67d0\u4e2a\u4efb\u52a1\u4f1a&#034;\u88ab\u52a8\u6001\u5220\u9664\u91cd\u5efa&#034;&#xff08;\u6bd4\u5982\u67d0\u79cd\u6a21\u5f0f\u5207\u6362&#xff09;\u3002\u67d0\u6b21\u5207\u6362\u540e&#xff0c;\u7cfb\u7edf\u6574\u4f53\u5361\u6b7b\u2014\u2014\u5176\u4ed6\u4efb\u52a1\u90fd\u5728\u7b49\u4e00\u628a\u4e92\u65a5\u91cf&#xff0c;\u6c38\u8fdc\u62ff\u4e0d\u5230\u3002\u6211\u7528\u8c03\u8bd5\u5668\u770b&#xff0c;\u90a3\u628a\u9501\u7684\u6301\u6709\u8005\u6b63\u662f&#034;\u521a\u521a\u88ab\u5220\u6389\u7684\u4efb\u52a1&#034;&#xff0c;\u5b83\u5220\u7684\u65f6\u5019\u6b63\u62ff\u7740\u9501&#xff0c;\u9501\u518d\u6ca1\u88ab\u91ca\u653e \u2192 \u6b7b\u9501\u3002<\/p>\n<p>\u6839\u56e0\u4e00\u53e5\u8bdd&#xff1a;FreeRTOS \u4e2d\u5982\u679c\u7528 vTaskDelete \u5220\u9664\u4e00\u4e2a\u5f53\u524d\u6301\u6709\u4e92\u65a5\u91cf&#xff08;mutex&#xff09;\u7684\u4efb\u52a1&#xff0c;\u4e92\u65a5\u91cf\u4e0d\u4f1a\u88ab\u81ea\u52a8\u91ca\u653e&#xff08;\u9664\u975e\u4f60\u663e\u5f0f\u5904\u7406&#xff09;\u3002\u8fd9\u628a\u9501\u5c31\u6c38\u8fdc&#034;\u88ab\u5df2\u6b7b\u4efb\u52a1\u6301\u6709&#034;&#xff0c;\u5176\u4ed6\u7b49\u5f85\u5b83\u7684\u4efb\u52a1\u5168\u90e8\u6b7b\u9501\u3002\u5220\u9664\u4efb\u52a1\u524d\u5fc5\u987b\u5148\u91ca\u653e\u5b83\u6301\u6709\u7684\u6240\u6709\u9501\u3002<\/p>\n<p>\u9002\u7528\u8bfb\u8005&#xff1a;\u6709&#034;\u52a8\u6001\u5220\u9664\/\u91cd\u5efa\u4efb\u52a1&#034;\u903b\u8f91\u3001\u51fa\u73b0&#034;\u5220\u5b8c\u67d0\u4e2a\u4efb\u52a1\u540e\u7cfb\u7edf\u5361\u6b7b\/\u5176\u4ed6\u4efb\u52a1\u997f\u6b7b&#034;\u7684\u540c\u5b66\u3002<br \/>\n\u8bfb\u5b8c\u4f60\u80fd\u505a&#xff1a;\u8bc6\u522b&#034;\u5220\u6301\u9501\u4efb\u52a1\u5bfc\u81f4\u6b7b\u9501&#034;&#xff0c;\u5728\u5220\u9664\u524d\u91ca\u653e\u6240\u6709\u5df2\u6301\u4e92\u65a5\u91cf&#xff0c;\u6216\u7528&#034;\u4f18\u96c5\u9000\u51fa&#034;\u673a\u5236\u907f\u514d\u3002<\/p>\n<h3>\u4e8c\u3001\u5148\u641e\u61c2&#xff1a;\u4e92\u65a5\u91cf\u548c\u4efb\u52a1\u751f\u547d\u5468\u671f&#xff08;\u8ba4\u77e5&#xff09;<\/h3>\n<h4>2.1 \u4e92\u65a5\u91cf\u662f&#034;\u5e26\u6240\u6709\u8005&#034;\u7684<\/h4>\n<p>\u4e92\u65a5\u91cf&#xff08;mutex&#xff09;\u4e0d\u540c\u4e8e\u4e8c\u503c\u4fe1\u53f7\u91cf&#xff1a;\u5b83\u8bb0\u5f55&#034;\u5f53\u524d\u6301\u6709\u8005&#034;\u3002\u53ea\u6709\u6301\u6709\u8005\u80fd\u91ca\u653e&#xff1b;\u91ca\u653e\u65f6\u82e5\u6301\u6709\u8005\u4f18\u5148\u7ea7\u88ab\u63d0\u5347\u8fc7&#xff08;\u4f18\u5148\u7ea7\u7ee7\u627f&#xff09;\u8fd8\u4f1a\u8fd8\u539f\u3002\u8fd9\u628a\u9501&#034;\u8ba4\u4e3b&#034;\u3002<\/p>\n<h4>2.2 \u5220\u4efb\u52a1\u4e3a\u4ec0\u4e48\u9501\u4e0d\u91ca\u653e<\/h4>\n<p>vTaskDelete \u53ea\u662f\u628a\u4efb\u52a1\u4ece\u8c03\u5ea6\u5668\u79fb\u9664\u3001\u56de\u6536 TCB\u3002\u5b83\u4e0d\u77e5\u9053\u4e5f\u4e0d\u8d1f\u8d23\u91ca\u653e\u8be5\u4efb\u52a1\u6301\u6709\u7684 mutex\u3002\u4e8e\u662f mutex \u7684&#034;\u6301\u6709\u8005&#034;\u6307\u9488\u4ecd\u6307\u5411\u5df2\u5220\u9664\u4efb\u52a1\u7684 TCB \u2192 \u9501\u6c38\u8fdc\u4e0d\u88ab\u91ca\u653e \u2192 \u7b49\u5f85\u8005\u6b7b\u9501\u3002<\/p>\n<table>\n<tr>\u72b6\u6001\u7ed3\u679c<\/tr>\n<tbody>\n<tr>\n<td>\u5220\u524d\u91ca\u653e\u9501<\/td>\n<td>\u6b63\u5e38<\/td>\n<\/tr>\n<tr>\n<td>\u5220\u65f6\u6301\u9501<\/td>\n<td>\u6b7b\u9501<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>#mermaid-svg-sluDcRufvrtfXPPX{font-family:\\&#8221;trebuchet ms\\&#8221;,verdana,arial,sans-serif;font-size:16px;fill:#333;}@keyframes edge-animation-frame{from{stroke-dashoffset:0;}}@keyframes dash{to{stroke-dashoffset:0;}}#mermaid-svg-sluDcRufvrtfXPPX .edge-animation-slow{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 50s linear infinite;stroke-linecap:round;}#mermaid-svg-sluDcRufvrtfXPPX .edge-animation-fast{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 20s linear infinite;stroke-linecap:round;}#mermaid-svg-sluDcRufvrtfXPPX .error-icon{fill:#552222;}#mermaid-svg-sluDcRufvrtfXPPX .error-text{fill:#552222;stroke:#552222;}#mermaid-svg-sluDcRufvrtfXPPX .edge-thickness-normal{stroke-width:1px;}#mermaid-svg-sluDcRufvrtfXPPX .edge-thickness-thick{stroke-width:3.5px;}#mermaid-svg-sluDcRufvrtfXPPX .edge-pattern-solid{stroke-dasharray:0;}#mermaid-svg-sluDcRufvrtfXPPX .edge-thickness-invisible{stroke-width:0;fill:none;}#mermaid-svg-sluDcRufvrtfXPPX .edge-pattern-dashed{stroke-dasharray:3;}#mermaid-svg-sluDcRufvrtfXPPX .edge-pattern-dotted{stroke-dasharray:2;}#mermaid-svg-sluDcRufvrtfXPPX .marker{fill:#333333;stroke:#333333;}#mermaid-svg-sluDcRufvrtfXPPX .marker.cross{stroke:#333333;}#mermaid-svg-sluDcRufvrtfXPPX svg{font-family:\\&#8221;trebuchet ms\\&#8221;,verdana,arial,sans-serif;font-size:16px;}#mermaid-svg-sluDcRufvrtfXPPX p{margin:0;}#mermaid-svg-sluDcRufvrtfXPPX .label{font-family:\\&#8221;trebuchet ms\\&#8221;,verdana,arial,sans-serif;color:#333;}#mermaid-svg-sluDcRufvrtfXPPX .cluster-label text{fill:#333;}#mermaid-svg-sluDcRufvrtfXPPX .cluster-label span{color:#333;}#mermaid-svg-sluDcRufvrtfXPPX .cluster-label span p{background-color:transparent;}#mermaid-svg-sluDcRufvrtfXPPX .label text,#mermaid-svg-sluDcRufvrtfXPPX span{fill:#333;color:#333;}#mermaid-svg-sluDcRufvrtfXPPX .node rect,#mermaid-svg-sluDcRufvrtfXPPX .node circle,#mermaid-svg-sluDcRufvrtfXPPX .node ellipse,#mermaid-svg-sluDcRufvrtfXPPX .node polygon,#mermaid-svg-sluDcRufvrtfXPPX .node path{fill:#ECECFF;stroke:#9370DB;stroke-width:1px;}#mermaid-svg-sluDcRufvrtfXPPX .rough-node .label text,#mermaid-svg-sluDcRufvrtfXPPX .node .label text,#mermaid-svg-sluDcRufvrtfXPPX .image-shape .label,#mermaid-svg-sluDcRufvrtfXPPX .icon-shape .label{text-anchor:middle;}#mermaid-svg-sluDcRufvrtfXPPX .node .katex path{fill:#000;stroke:#000;stroke-width:1px;}#mermaid-svg-sluDcRufvrtfXPPX .rough-node .label,#mermaid-svg-sluDcRufvrtfXPPX .node .label,#mermaid-svg-sluDcRufvrtfXPPX .image-shape .label,#mermaid-svg-sluDcRufvrtfXPPX .icon-shape .label{text-align:center;}#mermaid-svg-sluDcRufvrtfXPPX .node.clickable{cursor:pointer;}#mermaid-svg-sluDcRufvrtfXPPX .root .anchor path{fill:#333333!important;stroke-width:0;stroke:#333333;}#mermaid-svg-sluDcRufvrtfXPPX .arrowheadPath{fill:#333333;}#mermaid-svg-sluDcRufvrtfXPPX .edgePath .path{stroke:#333333;stroke-width:2.0px;}#mermaid-svg-sluDcRufvrtfXPPX .flowchart-link{stroke:#333333;fill:none;}#mermaid-svg-sluDcRufvrtfXPPX .edgeLabel{background-color:rgba(232,232,232, 0.8);text-align:center;}#mermaid-svg-sluDcRufvrtfXPPX .edgeLabel p{background-color:rgba(232,232,232, 0.8);}#mermaid-svg-sluDcRufvrtfXPPX .edgeLabel rect{opacity:0.5;background-color:rgba(232,232,232, 0.8);fill:rgba(232,232,232, 0.8);}#mermaid-svg-sluDcRufvrtfXPPX .labelBkg{background-color:rgba(232, 232, 232, 0.5);}#mermaid-svg-sluDcRufvrtfXPPX .cluster rect{fill:#ffffde;stroke:#aaaa33;stroke-width:1px;}#mermaid-svg-sluDcRufvrtfXPPX .cluster text{fill:#333;}#mermaid-svg-sluDcRufvrtfXPPX .cluster span{color:#333;}#mermaid-svg-sluDcRufvrtfXPPX div.mermaidTooltip{position:absolute;text-align:center;max-width:200px;padding:2px;font-family:\\&#8221;trebuchet ms\\&#8221;,verdana,arial,sans-serif;font-size:12px;background:hsl(80, 100%, 96.2745098039%);border:1px solid #aaaa33;border-radius:2px;pointer-events:none;z-index:100;}#mermaid-svg-sluDcRufvrtfXPPX .flowchartTitleText{text-anchor:middle;font-size:18px;fill:#333;}#mermaid-svg-sluDcRufvrtfXPPX rect.text{fill:none;stroke-width:0;}#mermaid-svg-sluDcRufvrtfXPPX .icon-shape,#mermaid-svg-sluDcRufvrtfXPPX .image-shape{background-color:rgba(232,232,232, 0.8);text-align:center;}#mermaid-svg-sluDcRufvrtfXPPX .icon-shape p,#mermaid-svg-sluDcRufvrtfXPPX .image-shape p{background-color:rgba(232,232,232, 0.8);padding:2px;}#mermaid-svg-sluDcRufvrtfXPPX .icon-shape .label rect,#mermaid-svg-sluDcRufvrtfXPPX .image-shape .label rect{opacity:0.5;background-color:rgba(232,232,232, 0.8);fill:rgba(232,232,232, 0.8);}#mermaid-svg-sluDcRufvrtfXPPX .label-icon{display:inline-block;height:1em;overflow:visible;vertical-align:-0.125em;}#mermaid-svg-sluDcRufvrtfXPPX .node .label-icon path{fill:currentColor;stroke:revert;stroke-width:revert;}#mermaid-svg-sluDcRufvrtfXPPX :root{&#8211;mermaid-font-family:\\&#8221;trebuchet ms\\&#8221;,verdana,arial,sans-serif;}<span class=\"edgeLabel\"><\/span><span class=\"edgeLabel\"><\/p>\n<p>\u5220\u524d\u91ca\u653e<\/p>\n<p><\/span><span class=\"edgeLabel\"><\/p>\n<p>\u5220\u65f6\u4e0d\u91ca\u653e<\/p>\n<p><\/span><span class=\"nodeLabel\"><\/p>\n<p>\u4efb\u52a1\u6301\u9501<\/p>\n<p><\/span><span class=\"nodeLabel\"><\/p>\n<p>vTaskDelete?<\/p>\n<p><\/span><span class=\"nodeLabel\"><\/p>\n<p>\u9501\u5f52\u8fd8 \u4ed6\u4eba\u53ef\u5f97<\/p>\n<p><\/span><span class=\"nodeLabel\"><\/p>\n<p>\u9501\u5f52\u5c5e\u5df2\u6b7b\u4efb\u52a1 \u6b7b\u9501<\/p>\n<p><\/span><\/p>\n<p>\u56fe 1&#xff1a;\u5220\u6301\u9501\u4efb\u52a1\u540e\u679c&#xff08;\u5982\u56fe 1 \u6240\u793a&#xff0c;\u4e0d\u91ca\u653e\u5373\u6b7b\u9501&#xff09;\u3002<\/p>\n<p>[\u6ce8\u610f] \u9012\u5f52\u4e92\u65a5\u91cf&#xff08;recursive mutex&#xff09;\u66f4\u9ebb\u70e6&#xff1a;\u6301\u6709\u65f6\u6709&#034;\u6301\u6709\u8ba1\u6570&#034;&#xff0c;\u5220\u9664\u524d\u9700\u91ca\u653e\u5bf9\u5e94\u6b21\u6570\u3002\u52a8\u6001\u5220\u9664\u4efb\u52a1\u7684\u7cfb\u7edf\u8981\u7279\u522b\u5c0f\u5fc3\u3002<\/p>\n<h3>\u4e09\u3001\u4e3a\u4ec0\u4e48\u4f1a\u6b7b\u9501&#xff08;\u539f\u7406 &#043; \u771f\u5b9e\u9519\u8bef\u4ee3\u7801&#xff09;<\/h3>\n<h4>3.1 \u6211\u6700\u521d\u7684\u5199\u6cd5&#xff08;\u9519\u8bef\u7248&#xff09;<\/h4>\n<p><span class=\"token comment\">\/\/ \u274c \u9519\u8bef\u5199\u6cd5&#xff1a;\u76f4\u63a5\u5220\u4efb\u52a1&#xff0c;\u6ca1\u7ba1\u5b83\u6301\u6709\u7684\u9501<\/span><br \/>\n<span class=\"token keyword\">void<\/span> <span class=\"token function\">switch_mode<\/span><span class=\"token punctuation\">(<\/span><span class=\"token keyword\">void<\/span><span class=\"token punctuation\">)<\/span> <span class=\"token punctuation\">{<\/span><br \/>\n    <span class=\"token function\">vTaskDelete<\/span><span class=\"token punctuation\">(<\/span>task_A_handle<span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span>          <span class=\"token comment\">\/\/ task_A \u6b63\u6301\u6709 config_mutex<\/span><br \/>\n    task_A_handle <span class=\"token operator\">&#061;<\/span> <span class=\"token function\">xTaskCreate<\/span><span class=\"token punctuation\">(<\/span><span class=\"token punctuation\">.<\/span><span class=\"token punctuation\">.<\/span><span class=\"token punctuation\">.<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span>    <span class=\"token comment\">\/\/ \u91cd\u5efa<\/span><br \/>\n    <span class=\"token comment\">\/\/ \u4e4b\u540e\u4efb\u4f55\u60f3\u62ff config_mutex \u7684\u4efb\u52a1\u90fd\u6b7b\u9501<\/span><br \/>\n<span class=\"token punctuation\">}<\/span><\/p>\n<p>\u9519\u5728\u54ea&#xff1a;<\/p>\n<li>task_A \u8fd0\u884c\u4e2d\u67d0\u523b\u62ff\u7740 config_mutex\u3002<\/li>\n<li>vTaskDelete \u628a\u5b83\u5220\u4e86&#xff0c;mutex \u6301\u6709\u8005\u4ecd\u6307\u5411\u5b83&#xff08;\u5df2\u6b7b&#xff09;\u3002<\/li>\n<li>\u5176\u4ed6\u4efb\u52a1 xSemaphoreTake(config_mutex) \u6c38\u8fdc\u963b\u585e\u3002<\/li>\n<li>\u7cfb\u7edf\u5361\u6b7b&#xff0c;\u4e14\u96be\u67e5&#xff08;\u9501&#034;\u5f52\u5c5e&#034;\u4e00\u4e2a\u4e0d\u5b58\u5728\u7684\u4efb\u52a1&#xff09;\u3002<\/li>\n<p>[\u5751] \u94c1\u5f8b&#xff1a;\u5220\u9664\u4efb\u52a1\u524d&#xff0c;\u5fc5\u987b\u91ca\u653e\u5b83\u6301\u6709\u7684\u6240\u6709 mutex&#xff08;\u542b\u9012\u5f52\u9501\u7684\u8ba1\u6570&#xff09;\u3002\u5426\u5219\u5fc5\u7136\u6b7b\u9501\u3002<\/p>\n<h4>3.2 \u4e3a\u4ec0\u4e48&#034;\u5076\u53d1&#034;<\/h4>\n<p>\u53ea\u6709&#034;\u5220\u9664\u7684\u90a3\u4e00\u523b\u4efb\u52a1\u6070\u597d\u6301\u9501&#034;\u624d\u89e6\u53d1\u3002\u82e5\u4efb\u52a1\u5927\u591a\u65f6\u5019\u4e0d\u6301\u9501&#xff0c;\u5220\u9664\u5c31\u6b63\u5e38 \u2192 \u8868\u73b0\u4e3a\u5076\u53d1\u6b7b\u9501&#xff0c;\u6781\u96be\u590d\u73b0\u3002<\/p>\n<table>\n<tr>\u5220\u9664\u65f6\u523b\u7ed3\u679c<\/tr>\n<tbody>\n<tr>\n<td>\u4efb\u52a1\u6301\u9501<\/td>\n<td>\u6b7b\u9501<\/td>\n<\/tr>\n<tr>\n<td>\u4efb\u52a1\u672a\u6301\u9501<\/td>\n<td>\u6b63\u5e38<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h3>\u56db\u3001\u6b63\u786e\u89e3\u6cd5&#xff1a;\u5220\u524d\u91ca\u653e\u9501 \/ \u4f18\u96c5\u9000\u51fa&#xff08;\u5b8c\u6574\u843d\u5730&#xff09;<\/h3>\n<h4>4.1 \u65b9\u6848\u5bf9\u6bd4<\/h4>\n<table>\n<tr>\u65b9\u6848\u5b89\u5168\u6027\u8bf4\u660e<\/tr>\n<tbody>\n<tr>\n<td>\u76f4\u63a5 vTaskDelete<\/td>\n<td>\u6b7b\u9501<\/td>\n<td>\u9519<\/td>\n<\/tr>\n<tr>\n<td>\u5220\u524d\u91ca\u653e\u6240\u6709\u9501<\/td>\n<td>\u5b89\u5168<\/td>\n<td>\u6b63\u89e3<\/td>\n<\/tr>\n<tr>\n<td>\u53d1&#034;\u9000\u51fa\u4fe1\u53f7&#034;\u8ba9\u4efb\u52a1\u81ea\u5220<\/td>\n<td>\u6700\u7a33<\/td>\n<td>\u63a8\u8350<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h4>4.2 \u914d\u7f6e&#xff08;\u7167\u7740\u70b9&#xff09;<\/h4>\n<p>FreeRTOSConfig.h&#xff1a;\u786e\u4fdd configUSE_MUTEXES&#061;1\u3001configUSE_RECURSIVE_MUTEXES&#xff08;\u5982\u7528\u9012\u5f52\u9501&#xff09;\u3002<\/p>\n<h4>4.3 \u5b8c\u6574\u4ee3\u7801&#xff08;\u53ef\u76f4\u63a5\u7f16\u8bd1&#xff09;<\/h4>\n<p><span class=\"token comment\">\/\/ \u65b9\u6848A&#xff1a;\u5220\u524d\u663e\u5f0f\u91ca\u653e<\/span><br \/>\n<span class=\"token keyword\">void<\/span> <span class=\"token function\">safe_delete<\/span><span class=\"token punctuation\">(<\/span>TaskHandle_t h<span class=\"token punctuation\">,<\/span> SemaphoreHandle_t locks<span class=\"token punctuation\">[<\/span><span class=\"token punctuation\">]<\/span><span class=\"token punctuation\">,<\/span> <span class=\"token keyword\">int<\/span> n<span class=\"token punctuation\">)<\/span> <span class=\"token punctuation\">{<\/span><br \/>\n    <span class=\"token comment\">\/\/ \u901a\u77e5\u4efb\u52a1\u505c\u6b62&#xff08;\u5982\u8bbe\u6807\u5fd7&#xff09;&#xff0c;\u7b49\u5b83\u9000\u51fa\u4e34\u754c\u533a<\/span><br \/>\n    <span class=\"token keyword\">for<\/span> <span class=\"token punctuation\">(<\/span><span class=\"token keyword\">int<\/span> i <span class=\"token operator\">&#061;<\/span> <span class=\"token number\">0<\/span><span class=\"token punctuation\">;<\/span> i <span class=\"token operator\">&lt;<\/span> n<span class=\"token punctuation\">;<\/span> i<span class=\"token operator\">&#043;&#043;<\/span><span class=\"token punctuation\">)<\/span><br \/>\n        <span class=\"token function\">xSemaphoreGive<\/span><span class=\"token punctuation\">(<\/span>locks<span class=\"token punctuation\">[<\/span>i<span class=\"token punctuation\">]<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span>        <span class=\"token comment\">\/\/ \u91ca\u653e\u5b83\u6301\u6709\u7684\u9501<\/span><br \/>\n    <span class=\"token function\">vTaskDelete<\/span><span class=\"token punctuation\">(<\/span>h<span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span><br \/>\n<span class=\"token punctuation\">}<\/span><\/p>\n<p><span class=\"token comment\">\/\/ \u65b9\u6848B&#xff08;\u63a8\u8350&#xff09;&#xff1a;\u4efb\u52a1\u81ea\u5df1\u4f18\u96c5\u9000\u51fa<\/span><br \/>\n<span class=\"token keyword\">static<\/span> <span class=\"token keyword\">volatile<\/span> <span class=\"token class-name\">uint8_t<\/span> g_quit <span class=\"token operator\">&#061;<\/span> <span class=\"token number\">0<\/span><span class=\"token punctuation\">;<\/span><br \/>\n<span class=\"token keyword\">void<\/span> <span class=\"token function\">task_A<\/span><span class=\"token punctuation\">(<\/span><span class=\"token keyword\">void<\/span> <span class=\"token operator\">*<\/span>arg<span class=\"token punctuation\">)<\/span> <span class=\"token punctuation\">{<\/span><br \/>\n    <span class=\"token keyword\">for<\/span> <span class=\"token punctuation\">(<\/span><span class=\"token punctuation\">;<\/span><span class=\"token punctuation\">;<\/span><span class=\"token punctuation\">)<\/span> <span class=\"token punctuation\">{<\/span><br \/>\n        <span class=\"token keyword\">if<\/span> <span class=\"token punctuation\">(<\/span>g_quit<span class=\"token punctuation\">)<\/span> <span class=\"token punctuation\">{<\/span>                     <span class=\"token comment\">\/\/ \u6536\u5230\u9000\u51fa\u4fe1\u53f7<\/span><br \/>\n            <span class=\"token function\">xSemaphoreGive<\/span><span class=\"token punctuation\">(<\/span>config_mutex<span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span> <span class=\"token comment\">\/\/ \u5148\u8fd8\u9501<\/span><br \/>\n            <span class=\"token function\">vTaskDelete<\/span><span class=\"token punctuation\">(<\/span><span class=\"token constant\">NULL<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span>            <span class=\"token comment\">\/\/ \u81ea\u6740&#xff08;\u81ea\u5220\u66f4\u5b89\u5168&#xff09;<\/span><br \/>\n        <span class=\"token punctuation\">}<\/span><br \/>\n        <span class=\"token comment\">\/\/ &#8230; \u6b63\u5e38\u6301\u9501\/\u5e72\u6d3b<\/span><br \/>\n    <span class=\"token punctuation\">}<\/span><br \/>\n<span class=\"token punctuation\">}<\/span><\/p>\n<p>[\u5751] \u4e24\u4e2a\u7ffb\u8f66\u70b9\u6536\u597d&#xff1a;<\/p>\n<li>\u5220\u4efb\u52a1\u524d\u4e0d\u91ca\u653e mutex\u2014\u2014\u6b7b\u9501\u6839\u56e0&#xff1b;\u5220\u524d Give \u6240\u6709\u9501\u6216\u8ba9\u4efb\u52a1\u81ea\u5220\u3002<\/li>\n<li>\u9012\u5f52\u4e92\u65a5\u91cf\u53ea Give \u4e00\u6b21\u2014\u2014\u6301\u6709\u8ba1\u6570\u6ca1\u6e05\u5b8c\u4ecd\u6b7b\u9501&#xff1b;\u9012\u5f52\u9501\u8981 Give \u5230\u8fd4\u56de pdTRUE \u8868\u793a\u5b8c\u5168\u91ca\u653e\u3002<\/li>\n<h4>4.4 \u6539\u5b8c\u7684\u5b9e\u6d4b\u5bf9\u6bd4<\/h4>\n<table>\n<tr>\u6307\u6807\u6539\u524d&#xff08;\u76f4\u63a5\u5220&#xff09;\u6539\u540e&#xff08;\u4f18\u96c5\u9000\u51fa&#xff09;<\/tr>\n<tbody>\n<tr>\n<td>\u5220\u4efb\u52a1\u540e\u7cfb\u7edf<\/td>\n<td>\u5076\u53d1\u6b7b\u9501<\/td>\n<td>\u7a33\u5b9a<\/td>\n<\/tr>\n<tr>\n<td>\u5176\u4ed6\u4efb\u52a1\u62ff\u9501<\/td>\n<td>\u6c38\u4e45\u963b\u585e<\/td>\n<td>\u6b63\u5e38<\/td>\n<\/tr>\n<tr>\n<td>\u53ef\u91cd\u73b0\u6027<\/td>\n<td>\u96be<\/td>\n<td>\u786e\u5b9a\u6027\u89e3\u51b3<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h3>\u4e94\u3001\u6536\u5c3e<\/h3>\n<p>\u8981\u70b9\u590d\u76d8<\/p>\n<li>\u5220\u6301\u9501\u4efb\u52a1\u4f1a\u5bfc\u81f4 mutex \u5f52\u5c5e\u5df2\u6b7b\u4efb\u52a1&#xff0c;\u5176\u4ed6\u7b49\u5f85\u8005\u6b7b\u9501\u3002<\/li>\n<li>\u5220\u524d\u5fc5\u987b\u91ca\u653e\u6240\u6709\u9501&#xff08;\u9012\u5f52\u9501\u91ca\u653e\u5230\u8ba1\u6570 0&#xff09;&#xff1b;\u4f18\u5148\u7528&#034;\u4efb\u52a1\u81ea\u5220&#034;\u4f18\u96c5\u9000\u51fa\u3002<\/li>\n<li>\u5076\u53d1\u6b7b\u9501\u5e38\u662f&#034;\u5220\u9664\u77ac\u95f4\u6070\u597d\u6301\u9501&#034;\u3002<\/li>\n<p>\u6700\u4f73\u5b9e\u8df5\u6e05\u5355<\/p>\n<ul>\n<li>\u52a8\u6001\u5220\u9664\u4efb\u52a1\u524d&#xff0c;\u786e\u4fdd\u5b83\u4e0d\u6301\u6709\u4efb\u4f55 mutex&#xff08;\u6216\u663e\u5f0f\u91ca\u653e&#xff09;\u3002<\/li>\n<li>\u63a8\u8350&#034;\u53d1\u9000\u51fa\u6807\u5fd7 &#043; \u4efb\u52a1\u81ea\u5220&#034;&#xff0c;\u6bd4\u5916\u90e8 vTaskDelete \u5b89\u5168\u3002<\/li>\n<li>\u9012\u5f52\u4e92\u65a5\u91cf\u91ca\u653e\u5230 xSemaphoreGiveRecursive \u8fd4\u56de\u6210\u529f&#xff08;\u5b8c\u5168\u91ca\u653e&#xff09;\u3002<\/li>\n<li>\u9501\u7684\u83b7\u53d6\/\u91ca\u653e\u6210\u5bf9\u5199&#xff0c;\u4e14\u52a0\u9501\u8def\u5f84\u5355\u4e00\u3001\u4f5c\u7528\u57df\u5c0f\u3002<\/li>\n<li>\u6b7b\u9501\u6392\u67e5&#xff1a;\u6253\u5370\u5404 mutex \u6301\u6709\u8005\u53e5\u67c4&#xff0c;\u770b\u662f\u5426\u6307\u5411\u5df2\u5220\u4efb\u52a1\u3002<\/li>\n<\/ul>\n<p>\u8fdb\u9636\u5ef6\u4f38&#xff1a;\u7528 uxSemaphoreGetCount\/\u6301\u6709\u8005 API&#xff08;\u4f9d\u8d56 configUSE_MUTEXES \u4e0e\u8c03\u8bd5\u94a9\u5b50&#xff09;\u5b9a\u4f4d\u6b7b\u9501&#xff1b;\u8003\u8651\u7528&#034;\u6b7b\u9501\u68c0\u6d4b&#034;\u5b9a\u65f6\u4efb\u52a1\u904d\u5386\u9501\u72b6\u6001\u3002<\/p>\n<p>\u4e92\u52a8&#xff1a;\u4f60 RTOS \u8fd8\u8e29\u8fc7\u5565\u6b7b\u9501&#xff1f;\u53cc\u9501\u987a\u5e8f\u53cd\u3001\u4f18\u5148\u7ea7\u53cd\u8f6c\u3001\u5220\u4efb\u52a1\u8e29\u5176\u4ed6\u8d44\u6e90&#xff1f;\u8bc4\u8bba\u533a\u804a\u804a\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6301\u9501\u4efb\u52a1\u88ab\u5220\u5bfc\u81f4\u6b7b\u9501&#xff1a;\u5220\u9664\u524d\u672a\u91ca\u653e\u4e92\u65a5\u91cf&#xff0c;\u5220\u4efb\u52a1\u524d\u5148\u89e3\u6240\u6709\u5df2\u6301\u9501\u6458\u8981&#xff1a;FreeRTOS \u4e2d\u76f4\u63a5\u5220\u9664\u4e00\u4e2a\u6301\u6709\u4e92\u65a5\u91cf\u7684\u4efb\u52a1&#xff0c;\u4f1a\u5bfc\u81f4\u8be5\u9501\u6c38\u8fdc\u5f52\u5c5e\u5df2\u6b7b\u4efb\u52a1&#xff0c;\u5176\u4ed6\u7b49\u5f85\u8005\u5168\u90e8\u6b7b\u9501\u3002\u672c\u6587\u7528\u4e00\u4e2a\u771f\u5b9e\u7ffb\u8f66\u73b0\u573a\u8bb2\u6e05\u6839\u56e0&#xff0c;\u7ed9\u51fa\\&#8221;\u5220\u524d\u663e\u5f0f\u91ca\u653e\u6240\u6709\u9501\\&#8221;\u4e0e\\&#8221;\u53d1\u9000\u51fa\u4fe1\u53f7\u8ba9\u4efb\u52a1\u81ea\u5220\\&#8221;\u4e24\u79cd\u6b63\u786e\u89e3\u6cd5&#xff0c;\u5e76\u9644\u53ef\u76f4\u63a5\u7f16\u8bd1\u7684 C \u4ee3\u7801\u4e0e\u5b9e\u6d4b\u5bf9\u6bd4&#xff0c;\u5e2e\u4f60\u5f7b\u5e95\u907f\u5f00\u8fd9\u4e2a\u5076\u53d1\u4e14\u6781\u96be\u6392\u67e5\u7684\u5751\u3002\u4e00\u3001\u5f00\u7bc7&#xff1a;\u4e00\u4e2a<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[7674,11565,270,269,6224],"topic":[],"class_list":["post-101174","post","type-post","status-publish","format-standard","hentry","category-server","tag-7674","tag-11565","tag-270","tag-269","tag-6224"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u6301\u9501\u4efb\u52a1\u88ab\u5220\u5bfc\u81f4\u6b7b\u9501\uff1a\u5220\u9664\u524d\u672a\u91ca\u653e\u4e92\u65a5\u91cf\uff0c\u5220\u4efb\u52a1\u524d\u5148\u89e3\u6240\u6709\u5df2\u6301\u9501 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.wsisp.com\/helps\/101174.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u6301\u9501\u4efb\u52a1\u88ab\u5220\u5bfc\u81f4\u6b7b\u9501\uff1a\u5220\u9664\u524d\u672a\u91ca\u653e\u4e92\u65a5\u91cf\uff0c\u5220\u4efb\u52a1\u524d\u5148\u89e3\u6240\u6709\u5df2\u6301\u9501 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u6301\u9501\u4efb\u52a1\u88ab\u5220\u5bfc\u81f4\u6b7b\u9501&#xff1a;\u5220\u9664\u524d\u672a\u91ca\u653e\u4e92\u65a5\u91cf&#xff0c;\u5220\u4efb\u52a1\u524d\u5148\u89e3\u6240\u6709\u5df2\u6301\u9501\u6458\u8981&#xff1a;FreeRTOS \u4e2d\u76f4\u63a5\u5220\u9664\u4e00\u4e2a\u6301\u6709\u4e92\u65a5\u91cf\u7684\u4efb\u52a1&#xff0c;\u4f1a\u5bfc\u81f4\u8be5\u9501\u6c38\u8fdc\u5f52\u5c5e\u5df2\u6b7b\u4efb\u52a1&#xff0c;\u5176\u4ed6\u7b49\u5f85\u8005\u5168\u90e8\u6b7b\u9501\u3002\u672c\u6587\u7528\u4e00\u4e2a\u771f\u5b9e\u7ffb\u8f66\u73b0\u573a\u8bb2\u6e05\u6839\u56e0&#xff0c;\u7ed9\u51fa&quot;\u5220\u524d\u663e\u5f0f\u91ca\u653e\u6240\u6709\u9501&quot;\u4e0e&quot;\u53d1\u9000\u51fa\u4fe1\u53f7\u8ba9\u4efb\u52a1\u81ea\u5220&quot;\u4e24\u79cd\u6b63\u786e\u89e3\u6cd5&#xff0c;\u5e76\u9644\u53ef\u76f4\u63a5\u7f16\u8bd1\u7684 C \u4ee3\u7801\u4e0e\u5b9e\u6d4b\u5bf9\u6bd4&#xff0c;\u5e2e\u4f60\u5f7b\u5e95\u907f\u5f00\u8fd9\u4e2a\u5076\u53d1\u4e14\u6781\u96be\u6392\u67e5\u7684\u5751\u3002\u4e00\u3001\u5f00\u7bc7&#xff1a;\u4e00\u4e2a\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/101174.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2026-09-06T02:41:00+00:00\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/101174.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/101174.html\",\"name\":\"\u6301\u9501\u4efb\u52a1\u88ab\u5220\u5bfc\u81f4\u6b7b\u9501\uff1a\u5220\u9664\u524d\u672a\u91ca\u653e\u4e92\u65a5\u91cf\uff0c\u5220\u4efb\u52a1\u524d\u5148\u89e3\u6240\u6709\u5df2\u6301\u9501 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2026-09-06T02:41:00+00:00\",\"dateModified\":\"2026-09-06T02:41:00+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/101174.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/101174.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/101174.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u6301\u9501\u4efb\u52a1\u88ab\u5220\u5bfc\u81f4\u6b7b\u9501\uff1a\u5220\u9664\u524d\u672a\u91ca\u653e\u4e92\u65a5\u91cf\uff0c\u5220\u4efb\u52a1\u524d\u5148\u89e3\u6240\u6709\u5df2\u6301\u9501\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\",\"url\":\"https:\/\/www.wsisp.com\/helps\/\",\"name\":\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"description\":\"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"contentUrl\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"caption\":\"admin\"},\"sameAs\":[\"http:\/\/wp.wsisp.com\"],\"url\":\"https:\/\/www.wsisp.com\/helps\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"\u6301\u9501\u4efb\u52a1\u88ab\u5220\u5bfc\u81f4\u6b7b\u9501\uff1a\u5220\u9664\u524d\u672a\u91ca\u653e\u4e92\u65a5\u91cf\uff0c\u5220\u4efb\u52a1\u524d\u5148\u89e3\u6240\u6709\u5df2\u6301\u9501 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.wsisp.com\/helps\/101174.html","og_locale":"zh_CN","og_type":"article","og_title":"\u6301\u9501\u4efb\u52a1\u88ab\u5220\u5bfc\u81f4\u6b7b\u9501\uff1a\u5220\u9664\u524d\u672a\u91ca\u653e\u4e92\u65a5\u91cf\uff0c\u5220\u4efb\u52a1\u524d\u5148\u89e3\u6240\u6709\u5df2\u6301\u9501 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u6301\u9501\u4efb\u52a1\u88ab\u5220\u5bfc\u81f4\u6b7b\u9501&#xff1a;\u5220\u9664\u524d\u672a\u91ca\u653e\u4e92\u65a5\u91cf&#xff0c;\u5220\u4efb\u52a1\u524d\u5148\u89e3\u6240\u6709\u5df2\u6301\u9501\u6458\u8981&#xff1a;FreeRTOS \u4e2d\u76f4\u63a5\u5220\u9664\u4e00\u4e2a\u6301\u6709\u4e92\u65a5\u91cf\u7684\u4efb\u52a1&#xff0c;\u4f1a\u5bfc\u81f4\u8be5\u9501\u6c38\u8fdc\u5f52\u5c5e\u5df2\u6b7b\u4efb\u52a1&#xff0c;\u5176\u4ed6\u7b49\u5f85\u8005\u5168\u90e8\u6b7b\u9501\u3002\u672c\u6587\u7528\u4e00\u4e2a\u771f\u5b9e\u7ffb\u8f66\u73b0\u573a\u8bb2\u6e05\u6839\u56e0&#xff0c;\u7ed9\u51fa\"\u5220\u524d\u663e\u5f0f\u91ca\u653e\u6240\u6709\u9501\"\u4e0e\"\u53d1\u9000\u51fa\u4fe1\u53f7\u8ba9\u4efb\u52a1\u81ea\u5220\"\u4e24\u79cd\u6b63\u786e\u89e3\u6cd5&#xff0c;\u5e76\u9644\u53ef\u76f4\u63a5\u7f16\u8bd1\u7684 C \u4ee3\u7801\u4e0e\u5b9e\u6d4b\u5bf9\u6bd4&#xff0c;\u5e2e\u4f60\u5f7b\u5e95\u907f\u5f00\u8fd9\u4e2a\u5076\u53d1\u4e14\u6781\u96be\u6392\u67e5\u7684\u5751\u3002\u4e00\u3001\u5f00\u7bc7&#xff1a;\u4e00\u4e2a","og_url":"https:\/\/www.wsisp.com\/helps\/101174.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2026-09-06T02:41:00+00:00","author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"3 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/101174.html","url":"https:\/\/www.wsisp.com\/helps\/101174.html","name":"\u6301\u9501\u4efb\u52a1\u88ab\u5220\u5bfc\u81f4\u6b7b\u9501\uff1a\u5220\u9664\u524d\u672a\u91ca\u653e\u4e92\u65a5\u91cf\uff0c\u5220\u4efb\u52a1\u524d\u5148\u89e3\u6240\u6709\u5df2\u6301\u9501 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2026-09-06T02:41:00+00:00","dateModified":"2026-09-06T02:41:00+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/101174.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/101174.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/101174.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"\u6301\u9501\u4efb\u52a1\u88ab\u5220\u5bfc\u81f4\u6b7b\u9501\uff1a\u5220\u9664\u524d\u672a\u91ca\u653e\u4e92\u65a5\u91cf\uff0c\u5220\u4efb\u52a1\u524d\u5148\u89e3\u6240\u6709\u5df2\u6301\u9501"}]},{"@type":"WebSite","@id":"https:\/\/www.wsisp.com\/helps\/#website","url":"https:\/\/www.wsisp.com\/helps\/","name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","description":"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41","name":"admin","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/","url":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","contentUrl":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","caption":"admin"},"sameAs":["http:\/\/wp.wsisp.com"],"url":"https:\/\/www.wsisp.com\/helps\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/101174","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/comments?post=101174"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/101174\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=101174"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=101174"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=101174"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=101174"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}