|
From: | Antonio Diaz Diaz |
Subject: | Re: [Lzip-bug] plzip |
Date: | Tue, 03 May 2016 17:46:37 +0200 |
User-agent: | Mozilla/5.0 (X11; U; Linux i586; en-US; rv:1.8.1.4) Gecko/20070601 SeaMonkey/1.1.2 |
Hi Tino, Tino Lange wrote:
MINOR: xinit() / xdestroy() cannot be overloaded for pthread_mutex_t* const and and pthread_cond_t* const - this is ambiguos under MINGW as both lead to void ** finally.-> Please change to using xinit_mutex(), xinit_cond() and xdestroy_mutex (), xdestroy_cond() in your codebase. Then MINGW will compile fine.
This can be done, but:
MAJOR: there is no pread() / pwrite(). Is it possible to write code that doesn't use those two functions?
Probably not without creating a serialization point in plzip (the file position). The point of plzip is parallel performance, so platforms where this can't be portably achieved should perhaps limit themselves to lzip.
BTW, the plzip binary available here[1] uses pread/pwrite, so I guess it does already exist a way of compiling it for Windows.
[1] http://download.savannah.gnu.org/releases/lzip/plzip/plzip-1.1-w.zip Best regards, Antonio.
[Prev in Thread] | Current Thread | [Next in Thread] |