Update autoloader to fix concurrency issues when changing loader path in autoloaded function

darcs-hash:20061028164122-ac50b-25f978df9afeb370a06ef7576ef03183034bc057.gz
This commit is contained in:
axel
2006-10-29 02:41:22 +10:00
parent f16bb285be
commit c5eaefc8b5
3 changed files with 85 additions and 37 deletions

View File

@@ -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 )