mirror of
https://github.com/facebook/zstd.git
synced 2025-12-08 00:03:24 -05:00
removed print statements
This commit is contained in:
parent
0b70152a9b
commit
a47ebb1607
@ -66,7 +66,6 @@ static adaptCCtx* createCCtx(unsigned numJobs, const char* const outFilename)
|
|||||||
ctx->numJobs = numJobs;
|
ctx->numJobs = numJobs;
|
||||||
ctx->lastJobID = -1; /* intentional underflow */
|
ctx->lastJobID = -1; /* intentional underflow */
|
||||||
ctx->jobs = calloc(1, numJobs*sizeof(jobDescription));
|
ctx->jobs = calloc(1, numJobs*sizeof(jobDescription));
|
||||||
DISPLAY("jobs %p\n", ctx->jobs);
|
|
||||||
{
|
{
|
||||||
unsigned u;
|
unsigned u;
|
||||||
for (u=0; u<numJobs; u++) {
|
for (u=0; u<numJobs; u++) {
|
||||||
@ -98,8 +97,6 @@ static void freeCompressionJobs(adaptCCtx* ctx)
|
|||||||
{
|
{
|
||||||
unsigned u;
|
unsigned u;
|
||||||
for (u=0; u<ctx->numJobs; u++) {
|
for (u=0; u<ctx->numJobs; u++) {
|
||||||
DISPLAY("freeing compression job %u\n", u);
|
|
||||||
DISPLAY("%u\n", ctx->numJobs);
|
|
||||||
jobDescription job = ctx->jobs[u];
|
jobDescription job = ctx->jobs[u];
|
||||||
if (job.dst.start) free(job.dst.start);
|
if (job.dst.start) free(job.dst.start);
|
||||||
if (job.src.start) free(job.src.start);
|
if (job.src.start) free(job.src.start);
|
||||||
@ -129,14 +126,12 @@ static int freeCCtx(adaptCCtx* ctx)
|
|||||||
|
|
||||||
static void* compressionThread(void* arg)
|
static void* compressionThread(void* arg)
|
||||||
{
|
{
|
||||||
DISPLAY("started compression thread\n");
|
|
||||||
adaptCCtx* ctx = (adaptCCtx*)arg;
|
adaptCCtx* ctx = (adaptCCtx*)arg;
|
||||||
unsigned currJob = 0;
|
unsigned currJob = 0;
|
||||||
for ( ; ; ) {
|
for ( ; ; ) {
|
||||||
jobDescription* job = &ctx->jobs[currJob];
|
jobDescription* job = &ctx->jobs[currJob];
|
||||||
pthread_mutex_lock(job->jobReady_mutex);
|
pthread_mutex_lock(job->jobReady_mutex);
|
||||||
while(job->jobReady == 0) {
|
while(job->jobReady == 0) {
|
||||||
DISPLAY("waiting\n");
|
|
||||||
pthread_cond_wait(job->jobReady_cond, job->jobReady_mutex);
|
pthread_cond_wait(job->jobReady_cond, job->jobReady_mutex);
|
||||||
}
|
}
|
||||||
pthread_mutex_unlock(job->jobReady_mutex);
|
pthread_mutex_unlock(job->jobReady_mutex);
|
||||||
@ -165,7 +160,6 @@ static void* compressionThread(void* arg)
|
|||||||
|
|
||||||
static void* outputThread(void* arg)
|
static void* outputThread(void* arg)
|
||||||
{
|
{
|
||||||
DISPLAY("started output thread\n");
|
|
||||||
adaptCCtx* ctx = (adaptCCtx*)arg;
|
adaptCCtx* ctx = (adaptCCtx*)arg;
|
||||||
|
|
||||||
unsigned currJob = 0;
|
unsigned currJob = 0;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user