modified lib GPC for header only

worked on 3d traytracing
This commit is contained in:
k-a-z-u
2017-09-06 17:04:19 +02:00
parent 845d89774d
commit c19d18a3a6
20 changed files with 884 additions and 299 deletions

View File

@@ -5,6 +5,7 @@
#include "../../../geo/BBox3.h"
#include <vector>
#include <functional>
#include <mutex>
template <typename T> class DataMap3 {
@@ -189,6 +190,8 @@ private:
struct DataMap3SignalEntry {
struct Entry {
float rssi;
float distanceToAP;
@@ -198,8 +201,11 @@ struct DataMap3SignalEntry {
std::vector<Entry> entries;
void add(const float rssi, const float distanceToAP) {
static std::mutex mtx;
Entry e(rssi, distanceToAP);
mtx.lock();
entries.push_back(e);
mtx.unlock();
}
float getMaxRSSI() const {