diff options
author | Daniel Boelzle <dbo@openoffice.org> | 2001-04-27 07:24:09 +0000 |
---|---|---|
committer | Daniel Boelzle <dbo@openoffice.org> | 2001-04-27 07:24:09 +0000 |
commit | 79b11177778727b6246277a89748ea21b3de80e0 (patch) | |
tree | df58a7694736fa070882a0d154bf70b695270260 /cppu/inc | |
parent | b4b6dcee0b0b4a2b9b1b315f6eea3060f280405d (diff) |
feature: holding environments weak
Diffstat (limited to 'cppu/inc')
-rw-r--r-- | cppu/inc/uno/environment.h | 27 |
1 files changed, 25 insertions, 2 deletions
diff --git a/cppu/inc/uno/environment.h b/cppu/inc/uno/environment.h index 8025ad43178b..c5d8482896d5 100644 --- a/cppu/inc/uno/environment.h +++ b/cppu/inc/uno/environment.h @@ -2,9 +2,9 @@ * * $RCSfile: environment.h,v $ * - * $Revision: 1.5 $ + * $Revision: 1.6 $ * - * last change: $Author: dbo $ $Date: 2001-04-17 13:29:24 $ + * last change: $Author: dbo $ $Date: 2001-04-27 08:24:08 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -117,6 +117,29 @@ typedef struct _uno_Environment */ void (SAL_CALL * release)( struct _uno_Environment * pEnv ); + /** Acquires this environment weakly. You can only harden a weakly held environment + if it is still acquired hard (acquire()). + <br> + @param pEnv this environment + */ + void (SAL_CALL * acquireWeak)( struct _uno_Environment * pEnv ); + + /** Releases this environment weakly in correspondence to acquireWeak(). + <br> + @param pEnv this environment + */ + void (SAL_CALL * releaseWeak)( struct _uno_Environment * pEnv ); + + /** Makes hard reference out of weak referenced environment. + You can only harden a weakly held environment if it is still acquired hard (acquire()). + <br> + @param ppHardEnv inout hard referenced environment (has to be released via release()) + @param pEnv environment (may be weak referenced) + */ + void (SAL_CALL * harden)( + struct _uno_Environment ** ppHardEnv, + struct _uno_Environment * pEnv ); + /** Call this function to <b>explicitly</b> dispose this environment (e.g., release all interfaces).<br> You might want to call this function before shutting down due to a runtime error. |