Skip to content

Commit

Permalink
Remove unused left overs from the mutex
Browse files Browse the repository at this point in the history
  • Loading branch information
betatim committed Feb 1, 2017
1 parent 28d41a3 commit a870206
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
2 changes: 1 addition & 1 deletion lib/khmer.hh
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ typedef unsigned short int BoundedCounterType;

// A single-byte type.
typedef unsigned char Byte;
typedef std::atomic<uint8_t> AtomicByte;
using AtomicByte = std::atomic<uint8_t>;


typedef void (*CallbackFn)(const char * info, void * callback_data,
Expand Down
6 changes: 0 additions & 6 deletions lib/storage.hh
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,6 @@ Contact: [email protected]
#ifndef STORAGE_HH
#define STORAGE_HH

#include <cassert>
#include <array>
#include <mutex>
using MuxGuard = std::lock_guard<std::mutex>;

namespace khmer
{
Expand Down Expand Up @@ -262,8 +258,6 @@ public:
NibbleStorage(std::vector<uint64_t>& tablesizes) :
_tablesizes{tablesizes}, _occupied_bins{0}, _n_unique_kmers{0}
{
// to allow more than 32 tables increase the size of mutex pool
assert(_n_tables <= 32);
_allocate_counters();
}

Expand Down

0 comments on commit a870206

Please sign in to comment.