java_DbLock.c
Upload User: romrleung
Upload Date: 2022-05-23
Package Size: 18897k
Code Size: 1k
Category:

MySQL

Development Platform:

Visual C++

  1. /*-
  2.  * See the file LICENSE for redistribution information.
  3.  *
  4.  * Copyright (c) 1997-2002
  5.  * Sleepycat Software.  All rights reserved.
  6.  */
  7. #include "db_config.h"
  8. #ifndef lint
  9. static const char revid[] = "$Id: java_DbLock.c,v 11.12 2002/02/28 21:27:38 ubell Exp $";
  10. #endif /* not lint */
  11. #include <jni.h>
  12. #include <stdlib.h>
  13. #include <string.h>
  14. #include "db_int.h"
  15. #include "java_util.h"
  16. #include "com_sleepycat_db_DbLock.h"
  17. JNIEXPORT void JNICALL Java_com_sleepycat_db_DbLock_finalize
  18.   (JNIEnv *jnienv, jobject jthis)
  19. {
  20. DB_LOCK *dblock = get_DB_LOCK(jnienv, jthis);
  21. if (dblock) {
  22. /* Free any data related to DB_LOCK here */
  23. __os_free(NULL, dblock);
  24. }
  25. set_private_dbobj(jnienv, name_DB_LOCK, jthis, 0); /* paranoia */
  26. }