You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by mt...@apache.org on 2009/04/22 14:19:34 UTC
svn commit: r767481 - in
/commons/sandbox/runtime/trunk/src/main/native/shared: descriptor.c pointer.c
Author: mturk
Date: Wed Apr 22 12:19:34 2009
New Revision: 767481
URL: http://svn.apache.org/viewvc?rev=767481&view=rev
Log:
Sync access to the Pointer and Descriptor from the native
Modified:
commons/sandbox/runtime/trunk/src/main/native/shared/descriptor.c
commons/sandbox/runtime/trunk/src/main/native/shared/pointer.c
Modified: commons/sandbox/runtime/trunk/src/main/native/shared/descriptor.c
URL: http://svn.apache.org/viewvc/commons/sandbox/runtime/trunk/src/main/native/shared/descriptor.c?rev=767481&r1=767480&r2=767481&view=diff
==============================================================================
--- commons/sandbox/runtime/trunk/src/main/native/shared/descriptor.c (original)
+++ commons/sandbox/runtime/trunk/src/main/native/shared/descriptor.c Wed Apr 22 12:19:34 2009
@@ -195,12 +195,7 @@
callback = (acr_descriptor_callback_fn_t *)((acr_ptr_t)c);
if (callback) {
- int rc = (*callback)(ACR_DESC_CLOSE, i, (void *)((acr_ptr_t)p));
- if (rc) {
- /* Throw IOException with errno message */
- ACR_ThrowException(_E, THROW_FMARK, ACR_EX_EIO, rc);
- }
- return rc;
+ return (*callback)(ACR_DESC_CLOSE, i, (void *)((acr_ptr_t)p));
}
else {
/* Already cleared */
Modified: commons/sandbox/runtime/trunk/src/main/native/shared/pointer.c
URL: http://svn.apache.org/viewvc/commons/sandbox/runtime/trunk/src/main/native/shared/pointer.c?rev=767481&r1=767480&r2=767481&view=diff
==============================================================================
--- commons/sandbox/runtime/trunk/src/main/native/shared/pointer.c (original)
+++ commons/sandbox/runtime/trunk/src/main/native/shared/pointer.c Wed Apr 22 12:19:34 2009
@@ -179,12 +179,7 @@
(*_E)->MonitorExit(_E, _O);
cleanup = (acr_pointer_cleanup_fn_t *)((acr_ptr_t)c);
if (cleanup) {
- int rc = (*cleanup)((void *)((acr_ptr_t)h));
- if (rc) {
- /* Throw RuntimeException with errno message */
- ACR_ThrowException(_E, THROW_FMARK, ACR_EX_ERUNTIME, rc);
- }
- return rc;
+ return (*cleanup)((void *)((acr_ptr_t)h));
}
else {
/* Already cleared */