mirror of
https://github.com/corda/corda.git
synced 2025-02-14 06:32:36 +00:00
fix MSVC build
This commit is contained in:
parent
ac49eb8c9a
commit
cce89c8ddd
@ -1568,20 +1568,20 @@ class Classpath {
|
|||||||
#ifdef _MSC_VER
|
#ifdef _MSC_VER
|
||||||
|
|
||||||
template <class T>
|
template <class T>
|
||||||
class RuntimeArray: public Thread::Resource {
|
class ThreadRuntimeArray: public Thread::Resource {
|
||||||
public:
|
public:
|
||||||
RuntimeArray(Thread* t, unsigned size):
|
ThreadRuntimeArray(Thread* t, unsigned size):
|
||||||
Resource(t),
|
Resource(t),
|
||||||
body(static_cast<T*>(t->m->heap->allocate(size * sizeof(T)))),
|
body(static_cast<T*>(t->m->heap->allocate(size * sizeof(T)))),
|
||||||
size(size)
|
size(size)
|
||||||
{ }
|
{ }
|
||||||
|
|
||||||
~RuntimeArray() {
|
~ThreadRuntimeArray() {
|
||||||
t->m->heap->free(body, size * sizeof(T));
|
t->m->heap->free(body, size * sizeof(T));
|
||||||
}
|
}
|
||||||
|
|
||||||
virtual void release() {
|
virtual void release() {
|
||||||
RuntimeArray::~RuntimeArray();
|
ThreadRuntimeArray::~ThreadRuntimeArray();
|
||||||
}
|
}
|
||||||
|
|
||||||
T* body;
|
T* body;
|
||||||
@ -1589,7 +1589,7 @@ class RuntimeArray: public Thread::Resource {
|
|||||||
};
|
};
|
||||||
|
|
||||||
# define THREAD_RUNTIME_ARRAY(thread, type, name, size) \
|
# define THREAD_RUNTIME_ARRAY(thread, type, name, size) \
|
||||||
RuntimeArray<type> name(thread, size);
|
ThreadRuntimeArray<type> name(thread, size);
|
||||||
|
|
||||||
#else // not _MSC_VER
|
#else // not _MSC_VER
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user