Thread state information should be held in the snapshotting region (when
implemented), so override new and delete.
}
}
+void * Thread::operator new(size_t size) {
+ return userMalloc(size);
+}
+
+void Thread::operator delete(void *ptr) {
+ userFree(ptr);
+}
+
Thread::Thread(thrd_t *t, void (*func)(), void *a) {
int ret;
class Thread {
public:
+ void * operator new(size_t size);
+ void operator delete(void *ptr);
Thread(thrd_t *t, void (*func)(), void *a);
Thread(thrd_t *t);
~Thread();