Replication Server uses the rs_dsi_check_thread_lock function to check whether the current DSI executor thread is blocking another replicate database process. In Replication Server 15.5, the rs_dsi_check_thread_lock function string has been modified to detect deadlocks.
See Chapter 4, “Replication Server System Functions” in the Replication Server Reference Manual.