Add threadsafe signal example.