@@ -21,7 +21,7 @@ template<class AddressAllocator, class HostAllocator>
21
21
class CAsyncSingleBufferSubAllocator
22
22
{
23
23
private:
24
- #ifdef _NBL_DEBUG
24
+ #if 0 // ifdef _NBL_DEBUG
25
25
std::recursive_mutex stAccessVerfier;
26
26
#endif // _NBL_DEBUG
27
27
using ThisType = CAsyncSingleBufferSubAllocator<AddressAllocator,HostAllocator>;
@@ -102,7 +102,7 @@ class CAsyncSingleBufferSubAllocator
102
102
inline void operator ()()
103
103
{
104
104
std::destroy_n (reinterpret_cast <ref_t *>(rangeData+numAllocs*2u ),numAllocs);
105
- #ifdef _NBL_DEBUG
105
+ #if 0 // ifdef _NBL_DEBUG
106
106
assert(composed && rangeData);
107
107
#endif // _NBL_DEBUG
108
108
composed->multi_deallocate (numAllocs,rangeData,rangeData+numAllocs);
@@ -130,7 +130,7 @@ class CAsyncSingleBufferSubAllocator
130
130
// ! Returns free events still outstanding
131
131
inline uint32_t cull_frees () noexcept
132
132
{
133
- #ifdef _NBL_DEBUG
133
+ #if 0 // ifdef _NBL_DEBUG
134
134
std::unique_lock<std::recursive_mutex> tLock(stAccessVerfier,std::try_to_lock_t());
135
135
assert(tLock.owns_lock());
136
136
#endif // _NBL_DEBUG
@@ -140,7 +140,7 @@ class CAsyncSingleBufferSubAllocator
140
140
// ! Returns max possible currently allocatable single allocation size, without having to wait for GPU more
141
141
inline size_type max_size () noexcept
142
142
{
143
- #ifdef _NBL_DEBUG
143
+ #if 0 // ifdef _NBL_DEBUG
144
144
std::unique_lock<std::recursive_mutex> tLock(stAccessVerfier,std::try_to_lock_t());
145
145
assert(tLock.owns_lock());
146
146
#endif // _NBL_DEBUG
@@ -161,7 +161,7 @@ class CAsyncSingleBufferSubAllocator
161
161
template <class Clock =typename std::chrono::steady_clock, typename ... Args>
162
162
inline size_type multi_allocate (const std::chrono::time_point<Clock>& maxWaitPoint, const Args&... args) noexcept
163
163
{
164
- #ifdef _NBL_DEBUG
164
+ #if 0 // ifdef _NBL_DEBUG
165
165
std::unique_lock<std::recursive_mutex> tLock(stAccessVerfier,std::try_to_lock_t());
166
166
assert(tLock.owns_lock());
167
167
#endif // _NBL_DEBUG
@@ -187,15 +187,15 @@ class CAsyncSingleBufferSubAllocator
187
187
// !
188
188
inline void multi_deallocate (core::smart_refctd_ptr<IGPUFence>&& fence, DeferredFreeFunctor&& functor) noexcept
189
189
{
190
- #ifdef _NBL_DEBUG
190
+ #if 0 // ifdef _NBL_DEBUG
191
191
std::unique_lock<std::recursive_mutex> tLock(stAccessVerfier,std::try_to_lock_t());
192
192
assert(tLock.owns_lock());
193
193
#endif // _NBL_DEBUG
194
194
deferredFrees.addEvent (GPUEventWrapper (const_cast <ILogicalDevice*>(m_composed.getBuffer ()->getOriginDevice ()),std::move (fence)),std::move (functor));
195
195
}
196
196
inline void multi_deallocate (uint32_t count, const value_type* addr, const size_type* bytes) noexcept
197
197
{
198
- #ifdef _NBL_DEBUG
198
+ #if 0 // ifdef _NBL_DEBUG
199
199
std::unique_lock<std::recursive_mutex> tLock(stAccessVerfier,std::try_to_lock_t());
200
200
assert(tLock.owns_lock());
201
201
#endif // _NBL_DEBUG
0 commit comments