~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/user_locks/barrier.h

Refactor

Show diffs side-by-side

added added

removed removed

Lines of Context:
35
35
 
36
36
#include "observer.h"
37
37
 
38
 
#ifndef PLUGIN_USER_LOCKS_BARRIER_H
39
 
#define PLUGIN_USER_LOCKS_BARRIER_H
 
38
#pragma once
40
39
 
41
40
/*
42
41
  Barrier was designed with the following concepts.
245
244
    {
246
245
      return limit - current_wait;
247
246
    }
248
 
    return std::abs(current_wait);
 
247
    return std::abs(static_cast<long int>(current_wait));
249
248
  }
250
249
 
251
250
 
265
264
} // namespace barriers
266
265
} // namespace user_locks
267
266
 
268
 
#endif /* PLUGIN_USER_LOCKS_BARRIER_H */