Update comments
This commit is contained in:
1 parent
3806495e2d
commit
d17fa4530b
2 files changed
+6
-3
No files matched your search
@@ -6943,6 +6943,9 @@ The following methods are available:
|
|||||||
|
|
||||||
A pool of worker.
|
A pool of worker.
|
||||||
|
|
||||||
|
The type is incompatible between C++, C/CLANG and C(all others) due to technical constraints,
|
||||||
|
so a variable of such a type shall always be accessed by the same compiler.
|
||||||
|
|
||||||
#### worker\_sync\_t
|
#### worker\_sync\_t
|
||||||
|
|
||||||
A synchronization point between workers.
|
A synchronization point between workers.
|
||||||
|
|||||||
+3
-3
@@ -40,7 +40,7 @@
|
|||||||
#include "m-buffer.h"
|
#include "m-buffer.h"
|
||||||
#include "m-mutex.h"
|
#include "m-mutex.h"
|
||||||
|
|
||||||
/* Include needed system header for detection of how many core on the system */
|
/* Include needed system header for detection of how many cores are available in the system */
|
||||||
#if defined(_WIN32)
|
#if defined(_WIN32)
|
||||||
# include <windows.h>
|
# include <windows.h>
|
||||||
#elif (defined(__APPLE__) && defined(__MACH__)) \
|
#elif (defined(__APPLE__) && defined(__MACH__)) \
|
||||||
@@ -136,7 +136,7 @@ typedef struct m_work3r_order_s {
|
|||||||
# define M_WORK3R_OPLIST M_POD_OPLIST
|
# define M_WORK3R_OPLIST M_POD_OPLIST
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Definition of a worker (implemented by a thread) */
|
/* Definition of the identity of a worker thread */
|
||||||
typedef struct m_work3r_thread_s {
|
typedef struct m_work3r_thread_s {
|
||||||
m_thread_t id;
|
m_thread_t id;
|
||||||
} m_work3r_thread_ct;
|
} m_work3r_thread_ct;
|
||||||
@@ -174,7 +174,7 @@ typedef struct m_worker_sync_s {
|
|||||||
struct m_worker_s *worker; // Reference to the pool of workers
|
struct m_worker_s *worker; // Reference to the pool of workers
|
||||||
} m_worker_sync_t[1];
|
} m_worker_sync_t[1];
|
||||||
|
|
||||||
/* Return the number of CPU of the system */
|
/* Return the number of cores available in the system */
|
||||||
static inline int
|
static inline int
|
||||||
m_work3r_get_cpu_count(void)
|
m_work3r_get_cpu_count(void)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in new issue
Block a user