~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/user_locks/barrier.h

  • Committer: patrick crews
  • Date: 2011-06-08 03:02:27 UTC
  • mto: This revision was merged to the branch mainline in revision 2329.
  • Revision ID: gleebix@gmail.com-20110608030227-updkyv2652zvfajc
Initial voodoo worked to give us a crashme mode.  Need docs still

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/* - mode: c; c-basic-offset: 2; indent-tabs-mode: nil; -*-
2
2
 *  vim:expandtab:shiftwidth=2:tabstop=2:smarttab:
3
3
 *
4
 
 * Copyright (c) 2010, Brian Aker
 
4
 * Copyright (C) 2010 Brian Aker
5
5
 * All rights reserved.
6
6
 *
7
7
 * Redistribution and use in source and binary forms, with or without
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 */