~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to storage/archive/concurrency_test.c

  • Committer: Brian Aker
  • Date: 2008-07-29 07:47:38 UTC
  • mfrom: (212.6.1 bzero-memset)
  • Revision ID: brian@tangent.org-20080729074738-lfzim6htapm42f2o
MergeĀ fromĀ Mats

Show diffs side-by-side

added added

removed removed

Lines of Context:
14
14
#include <fcntl.h>
15
15
#include <sys/time.h>
16
16
#include <pthread.h>
17
 
#include <strings.h>
 
17
#include <string.h>                             /* Pull in memset() */
18
18
#ifndef __WIN__
19
19
#include <sys/wait.h>
20
20
#endif
138
138
  pthread_mutex_unlock(&sleeper_mutex);
139
139
 
140
140
  context= (thread_context_st *)malloc(sizeof(thread_context_st) * DEFAULT_CONCURRENCY);
141
 
  bzero(context, sizeof(thread_context_st) * DEFAULT_CONCURRENCY);
 
141
  memset(context, 0, sizeof(thread_context_st) * DEFAULT_CONCURRENCY);
142
142
 
143
143
  if (!context)
144
144
  {
195
195
  {
196
196
    struct timespec abstime;
197
197
 
198
 
    bzero(&abstime, sizeof(struct timespec));
 
198
    memset(&abstime, 0, sizeof(struct timespec));
199
199
    abstime.tv_sec= 1;
200
200
 
201
201
    pthread_cond_timedwait(&count_threshhold, &counter_mutex, &abstime);