aboutsummaryrefslogtreecommitdiffhomepage
path: root/function.c
diff options
context:
space:
mode:
authorGravatar axel <axel@liljencrantz.se>2006-10-29 02:41:22 +1000
committerGravatar axel <axel@liljencrantz.se>2006-10-29 02:41:22 +1000
commitc5eaefc8b5a615c5559bb50510625d2a025dafb8 (patch)
tree4f746fa3f00d074fcef3d319a403d120191aafbe /function.c
parentf16bb285be7edc4abc75fc32348459eda79c7cf0 (diff)
Update autoloader to fix concurrency issues when changing loader path in autoloaded function
darcs-hash:20061028164122-ac50b-25f978df9afeb370a06ef7576ef03183034bc057.gz
Diffstat (limited to 'function.c')
-rw-r--r--function.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/function.c b/function.c
index 9f6105a4..2e138561 100644
--- a/function.c
+++ b/function.c
@@ -353,6 +353,9 @@ const wchar_t *function_get_definition_file( const wchar_t *argv )
CHECK( argv, 0 );
+ if( is_autoload )
+ return 0;
+
load( argv );
data = (function_data_t *)hash_get( &function, argv );
if( data == 0 )
@@ -368,6 +371,9 @@ int function_get_definition_offset( const wchar_t *argv )
CHECK( argv, -1 );
+ if( is_autoload )
+ return -1;
+
load( argv );
data = (function_data_t *)hash_get( &function, argv );
if( data == 0 )