#include "native/llni.h"
#include "threads/lock-common.h"
+#include "threads/mutex.hpp"
#include "toolbox/hashtable.h"
#include "toolbox/logging.h"
if (cl == NULL)
return NULL;
- LOCK_MONITOR_ENTER(hashtable_classloader->header);
+ hashtable_classloader->mutex->lock();
LLNI_CRITICAL_START;
hashtable_classloader->entries++;
}
-
- LOCK_MONITOR_EXIT(hashtable_classloader->header);
+ hashtable_classloader->mutex->unlock();
#if defined(ENABLE_HANDLES)
return cle;