diff options
Diffstat (limited to 'c/src/exec/score/src/threadinitialize.c')
-rw-r--r-- | c/src/exec/score/src/threadinitialize.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/c/src/exec/score/src/threadinitialize.c b/c/src/exec/score/src/threadinitialize.c index 9617f24665..feb07836e3 100644 --- a/c/src/exec/score/src/threadinitialize.c +++ b/c/src/exec/score/src/threadinitialize.c @@ -139,6 +139,20 @@ boolean _Thread_Initialize( the_thread->extensions = (void **) extensions_area; /* + * Clear the extensions area so extension users can determine + * if they are linked to the thread. An extension user may + * create the extension long after tasks have been created + * so they cannot rely on the thread create user extension + * call. + */ + + if ( the_thread->extensions ) { + int i; + for ( i = 0; i < (_Thread_Maximum_extensions + 1); i++ ) + the_thread->extensions[i] = NULL; + } + + /* * General initialization */ |