Skip to content

Commit 37599d1

Browse files
committed
fix: adjust format and thread missing with Apple
1 parent 6fe9f2c commit 37599d1

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

examples/rtde_client.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,8 @@ void printFraction(const double fraction, const std::string& label, const size_t
5959

6060
int main(int argc, char* argv[])
6161
{
62-
63-
#ifdef _WIN32
6462
pthread_t thread = pthread_self();
63+
#ifdef _WIN32
6564
pprocess_t process = pprocess_self();
6665

6766
// Assign logical CPUs 6 and 7 to this process
@@ -78,7 +77,6 @@ int main(int argc, char* argv[])
7877
URCL_LOG_ERROR("Failed to set thread affinity");
7978
}
8079
#elif __linux__
81-
pthread_t thread = pthread_self();
8280
cpu_set_t cpuset;
8381
CPU_ZERO(&cpuset);
8482

0 commit comments

Comments
 (0)