modified lib GPC for header only
worked on 3d traytracing
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user