enum { tid_bit = 1UL };
enum { tid = 0 };
+extern struct thread_info {
+ /* pad to cache line (64B) */
+ char __pad[0]; /* unused except to check remaining room */
+ char __end[0] __attribute__((aligned(64)));
+} thread_info[MAX_THREADS];
+
#define __decl_hathreads(decl)
#define __decl_spinlock(lock)
#define __decl_aligned_spinlock(lock)
void thread_isolate();
void thread_release();
+extern struct thread_info {
+ pthread_t pthread;
+ clockid_t clock_id;
+ /* pad to cache line (64B) */
+ char __pad[0]; /* unused except to check remaining room */
+ char __end[0] __attribute__((aligned(64)));
+} thread_info[MAX_THREADS];
+
extern THREAD_LOCAL unsigned int tid; /* The thread id */
extern THREAD_LOCAL unsigned long tid_bit; /* The bit corresponding to the thread id */
extern volatile unsigned long all_threads_mask;
extern unsigned int rlim_fd_max_at_boot;
extern int atexit_flag;
-extern struct thread_info {
- __decl_hathreads(pthread_t pthread);
- __decl_hathreads(clockid_t clock_id);
-} thread_info[MAX_THREADS];
-
/* bit values to go with "warned" above */
#define WARN_BLOCK_DEPRECATED 0x00000001
/* unassigned : 0x00000002 */