~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/user_locks/barriers.h

  • Committer: Brian Aker
  • Date: 2010-11-27 18:24:26 UTC
  • mfrom: (1956 quick)
  • mto: This revision was merged to the branch mainline in revision 1958.
  • Revision ID: brian@tangent.org-20101127182426-ajc6g4v2346t4yn3
Mrge Trunk.

Show diffs side-by-side

added added

removed removed

Lines of Context:
38
38
 
39
39
const size_t LARGEST_BARRIER_NAME= 64;
40
40
 
 
41
enum return_t {
 
42
  SUCCESS,
 
43
  NOT_FOUND,
 
44
  NOT_OWNED_BY
 
45
};
 
46
 
41
47
class Barriers
42
48
{
43
49
public:
51
57
 
52
58
  bool create(const user_locks::Key &arg, drizzled::session_id_t owner);
53
59
  bool create(const user_locks::Key &arg, drizzled::session_id_t owner, int64_t wait_count);
54
 
  boost::tribool release(const user_locks::Key &arg, drizzled::session_id_t owner);
 
60
  return_t release(const user_locks::Key &arg, drizzled::session_id_t owner);
55
61
  Barrier::shared_ptr find(const user_locks::Key &arg);
56
62
  void Copy(Map &arg);
57
63