cancel decompression gracefully
| 991 | |
| 992 | // cancel decompression gracefully |
| 993 | void cancel() |
| 994 | { |
| 995 | stop = true; |
| 996 | |
| 997 | // recursively cancel decompression threads in the chain |
| 998 | if (ztchain != NULL) |
| 999 | ztchain->cancel(); |
| 1000 | } |
| 1001 | |
| 1002 | // join this thread, this function is called by the main thread |
| 1003 | void join() |