|
Lagrange
|
Bridge between xatlas's C-style progress callback and the Lagrange notification + cancel API. More...
#include <internal/progress_bridge.h>
Bridge between xatlas's C-style progress callback and the Lagrange notification + cancel API.
xatlas may call its progress callback from worker threads. The bridge forwards monotonic per-category progress to the user callback and never lets exceptions propagate across the C ABI. If another thread is already notifying the callback, the new signal is dropped. Any exception thrown by the user callback is captured and rethrown by rethrow_if_pending() after the xatlas call returns.