diff --git a/content/shmem_init_thread.tex b/content/shmem_init_thread.tex index d83b5652..f1f397d8 100644 --- a/content/shmem_init_thread.tex +++ b/content/shmem_init_thread.tex @@ -50,7 +50,7 @@ by \FUNC{shmem\_init}, the library implementation can choose to support any one of the defined thread levels. -The \openshme library may not be able to change the level of threading support +The \openshmem library may not be able to change the level of threading support provided after the first initialization call has been made. } diff --git a/content/shmem_query_initialized.tex b/content/shmem_query_initialized.tex new file mode 100644 index 00000000..b0c79aeb --- /dev/null +++ b/content/shmem_query_initialized.tex @@ -0,0 +1,30 @@ +\apisummary{ +Returns the initialized statis of the \openshmem library. +} + +\begin{apidefinition} + +\begin{Csynopsis} +void @\FuncDecl{shmem\_query\_initialized}@(int *initialized); +\end{Csynopsis} + +\begin{apiarguments} +\apiargument{OUT}{initialized}{Nonzero if the \openshmem library is in the initialized state. Nonzero otherwise.} +\end{apiarguments} + +\apidescription{ + The \FUNC{shmem\_query\_initialized} call returns the initialization status + of the \openshmem library. If the application has called an \openshmem + initialization routine and has not yet made the corresponding call to + \FUNC{shmem\_finalize}, this routine returns nonzero. Otherwise, it returns + zero. + + This function may be called at any time, regardless of the thread safety + level of the \openshmem library. +} + +\apireturnvalues{ +None. +} + +\end{apidefinition} diff --git a/content/shmem_query_thread.tex b/content/shmem_query_thread.tex index b2144ff5..c917a314 100644 --- a/content/shmem_query_thread.tex +++ b/content/shmem_query_thread.tex @@ -19,6 +19,9 @@ initialized by \FUNC{shmem\_init\_thread}. If the library was initialized by \FUNC{shmem\_init}, the implementation can choose to provide any one of the defined thread levels, and \FUNC{shmem\_query\_thread} returns this thread level. + +This function may be called at any time, regardless of the thread safety +level of the \openshmem library. } \apireturnvalues{ diff --git a/main_spec.tex b/main_spec.tex index 23e2d624..8df1d5dd 100644 --- a/main_spec.tex +++ b/main_spec.tex @@ -92,6 +92,10 @@ \subsubsection{\textbf{SHMEM\_QUERY\_THREAD}} \label{subsec:shmem_query_thread} \input{content/shmem_query_thread} +\subsubsection{\textbf{SHMEM\_QUERY\_INITIALIZED}} +\label{subsec:shmem_query_initialized} +\input{content/shmem_query_initialized} + \subsection{Memory Management Routines} \label{sec:memory_management}