mirror of
https://bitbucket.org/smil3y/katie.git
synced 2025-02-25 03:12:56 +00:00
Revert "JavaScriptCore table, iterators and mutex do not have to be mutable"
This reverts commit 8f0ff492ec
.
This commit is contained in:
parent
c8e884c2d3
commit
19a29cc97e
1 changed files with 5 additions and 5 deletions
10
src/3rdparty/javascriptcore/wtf/HashTable.h
vendored
10
src/3rdparty/javascriptcore/wtf/HashTable.h
vendored
|
@ -212,9 +212,9 @@ namespace WTF {
|
||||||
public:
|
public:
|
||||||
// Any modifications of the m_next or m_previous of an iterator that is in a linked list of a HashTable::m_iterator,
|
// Any modifications of the m_next or m_previous of an iterator that is in a linked list of a HashTable::m_iterator,
|
||||||
// should be guarded with m_table->m_mutex.
|
// should be guarded with m_table->m_mutex.
|
||||||
const HashTableType* m_table;
|
mutable const HashTableType* m_table;
|
||||||
const_iterator* m_next;
|
mutable const_iterator* m_next;
|
||||||
const_iterator* m_previous;
|
mutable const_iterator* m_previous;
|
||||||
#endif
|
#endif
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -396,8 +396,8 @@ namespace WTF {
|
||||||
#if CHECK_HASHTABLE_ITERATORS
|
#if CHECK_HASHTABLE_ITERATORS
|
||||||
public:
|
public:
|
||||||
// All access to m_iterators should be guarded with m_mutex.
|
// All access to m_iterators should be guarded with m_mutex.
|
||||||
const_iterator* m_iterators;
|
mutable const_iterator* m_iterators;
|
||||||
QMutex m_mutex;
|
mutable QMutex m_mutex;
|
||||||
#endif
|
#endif
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue