~ubuntu-branches/ubuntu/wily/davix/wily

« back to all changes in this revision

Viewing changes to src/libs/lockers/dpplock.cpp

  • Committer: Package Import Robot
  • Author(s): Mattias Ellert
  • Date: 2014-07-08 09:59:36 UTC
  • mfrom: (1.1.3)
  • Revision ID: package-import@ubuntu.com-20140708095936-imto9hahxsnxwvw5
Tags: 0.3.1-1
Update to version 0.3.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#include "dpplock.hpp"
2
 
 
3
 
DppLock::DppLock() :
4
 
    mux()
5
 
{
6
 
    pthread_mutex_init(&mux,NULL);
7
 
}
8
 
 
9
 
DppLock::~DppLock(){
10
 
    pthread_mutex_destroy(&mux);
11
 
}
12
 
 
13
 
void DppLock::lock(){
14
 
    pthread_mutex_lock(&mux);
15
 
}
16
 
 
17
 
void DppLock::unlock(){
18
 
    pthread_mutex_unlock(&mux);
19
 
}