Calling xQueueOverwrite from lower priority Task

If a lower priority task writes to a mailbox queue using xQueueOverwrite(), will it be thread safe and atomic even if a higher priority task interrupts the lower priority task as it is calling xQueueOverwrite() or will the lower priority task finish calling xQueueOverwrite() before the scheduler switches context?

All the FreeRTOS APIs are thread safe.