Skip to content

Commit

Permalink
Add initialized query
Browse files Browse the repository at this point in the history
Signed-off-by: James Dinan <[email protected]>
  • Loading branch information
jdinan committed Apr 8, 2024
1 parent f093500 commit 3f9099d
Show file tree
Hide file tree
Showing 4 changed files with 38 additions and 1 deletion.
2 changes: 1 addition & 1 deletion content/shmem_init_thread.tex
Original file line number Diff line number Diff line change
Expand Up @@ -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.
}

Expand Down
30 changes: 30 additions & 0 deletions content/shmem_query_initialized.tex
Original file line number Diff line number Diff line change
@@ -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}
3 changes: 3 additions & 0 deletions content/shmem_query_thread.tex
Original file line number Diff line number Diff line change
Expand Up @@ -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{
Expand Down
4 changes: 4 additions & 0 deletions main_spec.tex
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand Down

0 comments on commit 3f9099d

Please sign in to comment.