Don't use sigev_value.sival_int to just store the mid, use sigev_value.sival_ptr...