| 28 | } |
| 29 | |
| 30 | std::string SynchroniBoard::get_lib_name () |
| 31 | { |
| 32 | std::string synclib_path = ""; |
| 33 | std::string synclib_name = ""; |
| 34 | char synclib_dir[1024]; |
| 35 | bool res = get_dll_path (synclib_dir); |
| 36 | |
| 37 | #ifdef _WIN32 |
| 38 | if (sizeof (void *) == 4) |
| 39 | { |
| 40 | synclib_name = "SynchroniLib32.dll"; |
| 41 | } |
| 42 | else |
| 43 | { |
| 44 | synclib_name = "SynchroniLib.dll"; |
| 45 | } |
| 46 | #endif |
| 47 | #ifdef __linux__ |
| 48 | #if defined(__arm__) || defined(_M_ARM64) || defined(_M_ARM) || defined(__aarch64__) |
| 49 | synclib_name = "libSynchroniLib_arm64.so"; |
| 50 | #else |
| 51 | synclib_name = "libSynchroniLib_x64.so"; |
| 52 | #endif |
| 53 | #endif |
| 54 | #ifdef __APPLE__ |
| 55 | synclib_name = "libSynchroniLib.dylib"; |
| 56 | #endif |
| 57 | |
| 58 | if (res) |
| 59 | { |
| 60 | synclib_path = std::string (synclib_dir) + synclib_name; |
| 61 | } |
| 62 | else |
| 63 | { |
| 64 | synclib_path = synclib_name; |
| 65 | } |
| 66 | return synclib_path; |
| 67 | } |
| 68 | |
| 69 | |
| 70 | void SynchroniBoard::read_thread () |
nothing calls this directly
no test coverage detected