~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to include/my_pthread.h

  • Committer: Jay Pipes
  • Date: 2008-07-18 20:20:47 UTC
  • mto: This revision was merged to the branch mainline in revision 182.
  • Revision ID: jay@mysql.com-20080718202047-1tnd4i9z3k3cvg9v
DBUG entirely removed from server and client

Show diffs side-by-side

added added

removed removed

Lines of Context:
91
91
*/
92
92
#if defined(HAVE_SIGACTION) && !defined(my_sigset)
93
93
#define my_sigset(A,B) do { struct sigaction l_s; sigset_t l_set; int l_rc; \
94
 
                            DBUG_ASSERT((A) != 0);                          \
 
94
                            assert((A) != 0);                          \
95
95
                            sigemptyset(&l_set);                            \
96
96
                            l_s.sa_handler = (B);                           \
97
97
                            l_s.sa_mask   = l_set;                          \
98
98
                            l_s.sa_flags   = 0;                             \
99
99
                            l_rc= sigaction((A), &l_s, (struct sigaction *) NULL);\
100
 
                            DBUG_ASSERT(l_rc == 0);                         \
 
100
                            assert(l_rc == 0);                         \
101
101
                          } while (0)
102
102
#elif defined(HAVE_SIGSET) && !defined(my_sigset)
103
103
#define my_sigset(A,B) sigset((A),(B))
423
423
  bool init;
424
424
  struct st_my_thread_var *next,**prev;
425
425
  void *opt_info;
426
 
#ifndef DBUG_OFF
427
 
  void *dbug;
428
 
  char name[THREAD_NAME_SIZE+1];
429
 
#endif
430
426
};
431
427
 
432
428
extern struct st_my_thread_var *_my_thread_var(void) __attribute__ ((const));