+void Actuator_Pause(Actuator *a)
+{
+ if (a->activated)
+ {
+ a->activated = false;
+ Actuator_SetControl(a, NULL);
+ pthread_join(a->thread, NULL); // Wait for thread to exit
+ }
+}
+
+void Actuator_Resume(Actuator *a)
+{
+ if (!a->activated)
+ {
+ a->activated = true;
+ pthread_create(&(a->thread), NULL, Actuator_Loop, (void*)(a));
+ }
+}
+