mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-04 05:51:27 +12:00
Rename -> typemap_ptr::unlock()
This commit is contained in:
parent
bc87c5808c
commit
f6f72c1cf8
1 changed files with 4 additions and 4 deletions
|
@ -390,7 +390,7 @@ namespace utils
|
||||||
|
|
||||||
friend typemap;
|
friend typemap;
|
||||||
|
|
||||||
void unlock()
|
void release()
|
||||||
{
|
{
|
||||||
// Additional semaphore is not used for singletons
|
// Additional semaphore is not used for singletons
|
||||||
if constexpr (typeinfo_count<T>::max_count > 1)
|
if constexpr (typeinfo_count<T>::max_count > 1)
|
||||||
|
@ -426,7 +426,7 @@ namespace utils
|
||||||
{
|
{
|
||||||
if (m_block)
|
if (m_block)
|
||||||
{
|
{
|
||||||
unlock();
|
release();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -464,11 +464,11 @@ namespace utils
|
||||||
}
|
}
|
||||||
|
|
||||||
// Release the lock and set invalid state
|
// Release the lock and set invalid state
|
||||||
void release()
|
void unlock()
|
||||||
{
|
{
|
||||||
if (m_block)
|
if (m_block)
|
||||||
{
|
{
|
||||||
unlock();
|
release();
|
||||||
m_block = nullptr;
|
m_block = nullptr;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue