Is the threadsafequeue.tar.gz link still valid for other people? I just tried to download it and am unable to untar it:
Qt Code:
luke@ThinkPad-W510:/tmp$ tar xvf threadsafequeue.tar.gz tar: This does not look like a tar archive tar: Skipping to next header tar: Exiting with failure status due to previous errorsTo copy to clipboard, switch view to plain text mode
Also, the file size when I download it is 990 bytes, but the forum post lists it as 960 bytes.... Anybody else having this issue?
I am aware that it is tar-gzipped, and I am familiar with working with .tar.gz/.tgz files. `tar xvf` normally gunzips then untars tar-gzipped files just fine, but not this one. To get it to work, I had to do those things in two steps:
Qt Code:
$ gunzip threadsafequeue.tar.gz $ tar x -f threadsafequeue.tarTo copy to clipboard, switch view to plain text mode
Which is unusual. Adding the -z option to tar did not fix it either.
FYI, in the copy of wysota's otherwise excellent ThreadSafeQueue that i downloaded, the return statement is missing from head().
perhaps it has been fixed later and i missed the later version.
thanks.
Bookmarks