Skip to content

Commit

Permalink
ThreadPool::default_nthread is public and static
Browse files Browse the repository at this point in the history
  • Loading branch information
evaleev committed Nov 2, 2023
1 parent 03c82cf commit 2716540
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/madness/world/thread.h
Original file line number Diff line number Diff line change
Expand Up @@ -1122,7 +1122,12 @@ namespace madness {
void operator=(const ThreadPool&) = delete;
void operator=(ThreadPool&&) = delete;

private:
/// Get the number of threads from the environment.

/// \return The number of threads.
static int default_nthread();

private:
friend class WorldTaskQueue;

// Thread pool data
Expand All @@ -1147,11 +1152,6 @@ namespace madness {
/// \param[in] nthread Description needed.
ThreadPool(int nthread=-1);

/// Get the number of threads from the environment.

/// \return The number of threads.
int default_nthread();

/// Run the next task.

/// \todo Verify and complete this documentation.
Expand Down

0 comments on commit 2716540

Please sign in to comment.