---
name: "lqr_carver_cancel"
section: "3"
platform: "linux"
package: "liblqr-1-0-dev"
version: "0.4.1-2"
release: "Debian 7 (Wheezy)"
platforms: ["linux"]
url: "https://new.carta.tech/lqr_carver_cancel"
---

# lqr\_carver\_cancel(3)

cancel ongoing operations on a LqrCarver object

## NAME

lqr\_carver\_cancel - cancel ongoing operations on a LqrCarver object

## SYNOPSIS

```
#include <lqr.h>
```

**LqrRetVal lqr\_carver\_cancel(LqrCarver\*** *carver***);**

## DESCRIPTION

The function **lqr\_carver\_cancel** can be used to cancel an ongoing operation which is currently being performed on the the LqrCarver object pointed to by *carver*. It must be used asynchronouly, from within an independent thread.

If an operation is in fact cancelled by this function, the function which was performing the operation will return the value **LQR\_USRCANCEL**, and so will do any other operation successively called on the same LqrCarver object whose return type is LqrRetVal; otherwise it will have no effect.

Whenever a function returns **LQR\_USRCANCEL**, it means that the LqrCarver object is in an inconsistent state, and, since there is currently no way to recover from this situation, any further operation on that object must be avoided, and it must be destroyed.

This function will fail if invoked over attached LqrCarver objects.

## RETURN VALUE

The return value follows the Liquid Rescale library signalling system. However, it can be called multiple times, so it will never return **LQR\_USRCANCEL** itself.

## SEE ALSO

[**LqrRetVal**(3)](/LqrRetVal/3.md), [**lqr\_carver\_resize**(3)](/lqr_carver_resize/3.md), [**lqr\_carver\_flatten**(3)](/lqr_carver_flatten/3.md)

## COPYRIGHT

Copyright © 2007-2009 Carlo Baldassi\
