Skip to content
This repository was archived by the owner on Oct 12, 2022. It is now read-only.

Commit e2d2c5f

Browse files
committed
Rename: dataStorageInit -> initDataStorage, dataStorageDestroy* -> destroyDataStorage*
1 parent d9b35cc commit e2d2c5f

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

src/core/thread/osthread.d

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2127,7 +2127,7 @@ else version (Posix)
21272127
void function(void*) @nogc nothrow)(loadedLibraries);
21282128
}
21292129

2130-
obj.dataStorageInit();
2130+
obj.initDataStorage();
21312131

21322132
atomicStore!(MemoryOrder.raw)(obj.m_isRunning, true);
21332133
Thread.setThis(obj); // allocates lazy TLS (see Issue 11981)
@@ -2136,7 +2136,7 @@ else version (Posix)
21362136
{
21372137
Thread.remove(obj);
21382138
atomicStore!(MemoryOrder.raw)(obj.m_isRunning, false);
2139-
obj.dataStorageDestroy();
2139+
obj.destroyDataStorage();
21402140
}
21412141
Thread.add(&obj.m_main);
21422142

src/core/thread/threadbase.d

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ class ThreadBase
119119
*/
120120
package bool destructBeforeDtor() nothrow @nogc
121121
{
122-
dataStorageDestroyIfAvail();
122+
destroyDataStorageIfAvail();
123123

124124
bool no_context = m_addr == m_addr.init;
125125
bool not_registered = !next && !prev && (sm_tbeg !is this);
@@ -132,7 +132,7 @@ class ThreadBase
132132
m_tlsgcdata = rt_tlsgc_init();
133133
}
134134

135-
package void dataStorageInit() nothrow
135+
package void initDataStorage() nothrow
136136
{
137137
assert(m_curr is &m_main);
138138

@@ -141,16 +141,16 @@ class ThreadBase
141141
tlsGCdataInit();
142142
}
143143

144-
package void dataStorageDestroy() nothrow @nogc
144+
package void destroyDataStorage() nothrow @nogc
145145
{
146146
rt_tlsgc_destroy(m_tlsgcdata);
147147
m_tlsgcdata = null;
148148
}
149149

150-
package void dataStorageDestroyIfAvail() nothrow @nogc
150+
package void destroyDataStorageIfAvail() nothrow @nogc
151151
{
152152
if (m_tlsgcdata)
153-
dataStorageDestroy();
153+
destroyDataStorage();
154154
}
155155

156156

0 commit comments

Comments
 (0)