nl :: نسج:: نظام:: موتكس
#include <src/system/SystemMutex.h>
This class represents a simple mutual exclusion lock used on platforms with preemptively scheduled multi-threaded programming environments, for example, POSIX threads and FreeRTOS.
ملخص
القفل غير متكرر ، ولا يجوز استخدامه في سياق مقاطعة الأجهزة. يتم تعريف منشئ والمدمر وظائف لاغية لتسهيل استخدام الكائنات مع static
مدة التخزين والذاكرة غير مهيأ. استخدام Init
طريقة لتهيئة. لم يتم توفير مشغلي النسخ / النقل.
البنائين والمدمرين | |
---|---|
Mutex (void) | |
~Mutex (void) |
الوظائف العامة | |
---|---|
Lock (void) | void احصل على قفل الاستبعاد المتبادل ، وحظر الخيط الحالي إلى أجل غير مسمى إذا لزم الأمر. |
Unlock (void) | void حرر قفل الاستبعاد المتبادل (يمكن حظره في بعض الأنظمة حتى يكتمل المجدول). |
وظائف ثابتة عامة | |
---|---|
Init ( Mutex & aMutex) | Error |
الوظائف العامة
قفل
void Lock( void )
احصل على قفل الاستبعاد المتبادل ، وحظر الخيط الحالي إلى أجل غير مسمى إذا لزم الأمر.
موتكس
Mutex( void )
الغاء القفل
void Unlock( void )
حرر قفل الاستبعاد المتبادل (يمكن حظره في بعض الأنظمة حتى يكتمل المجدول).
~ موتكس
~Mutex( void )
وظائف ثابتة عامة
فيه
Error Init( Mutex & aMutex )
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates. Thread is a registered trademark of the Thread Group, Inc.
Last updated 2018-06-05 UTC.