This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

[参考译文] CC1312R:如何检查对象是否已构造、是否可用或已被破坏。

Guru**** 2549390 points


请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/wireless-connectivity/sub-1-ghz-group/sub-1-ghz/f/sub-1-ghz-forum/1104762/cc1312r-how-to-check-if-object-has-been-constructed-and-is-available-or-has-been-destructed

器件型号:CC1312R

您好!  

在发生 certan 事件的应用程序中、我使用"construct" Metod 创建时钟对象。 之后会破坏同一个时钟对象。  

由于开关上的事件会在对象被破坏之前产生时钟对象(此时时钟可能处于活动状态或未处于活动状态) 如果对象尚未被破坏、我需要采取一些措施来避免调用具有相同对象/时钟结构的"构造"。  

那么问题是:是否有办法检查 对象是否已经构造并且仍然可以使用(尚未破坏)?

此致、

Dimitar Devedzhiev