1
0
mirror of https://github.com/wolfpld/tracy.git synced 2025-03-20 07:40:02 +08:00

Announce lock creation.

This commit is contained in:
Bartosz Taudul
2017-10-04 16:16:40 +02:00
parent 069354b5dd
commit 78f8425dc7
4 changed files with 42 additions and 0 deletions
+7
View File
@@ -12,6 +12,13 @@ class Lockable
public:
Lockable( const SourceLocation* srcloc )
{
Magic magic;
auto& token = s_token;
auto item = s_queue.enqueue_begin( token, magic );
item->hdr.type = QueueType::LockAnnounce;
item->lockAnnounce.id = (uint64_t)&m_lockable;
item->lockAnnounce.srcloc = (uint64_t)srcloc;
s_queue.enqueue_finish( token, magic );
}
Lockable( const Lockable& ) = delete;