diff options
author | axel <axel@liljencrantz.se> | 2006-10-29 02:41:22 +1000 |
---|---|---|
committer | axel <axel@liljencrantz.se> | 2006-10-29 02:41:22 +1000 |
commit | c5eaefc8b5a615c5559bb50510625d2a025dafb8 (patch) | |
tree | 4f746fa3f00d074fcef3d319a403d120191aafbe /function.c | |
parent | f16bb285be7edc4abc75fc32348459eda79c7cf0 (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.c | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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 ) |