More blocks, to smooth out inconsistent read times. Allow OPTS in LDFLAGS

pull/2/head
Dave Vasilevsky 14 years ago
parent c43bd28154
commit 3a87ea5231

@ -3,7 +3,6 @@ ifneq ($(shell gcc -v 2>&1 | grep 'Apple Inc'),)
endif
LIBPREFIX = /Library/Fink/sl64 /opt/local
LDFLAGS = $(patsubst %,-L%/lib,$(LIBPREFIX)) -g -Wall
ifdef APPLE
ifeq ($(CC),gcc)
LDFLAGS += -search_paths_first
@ -12,6 +11,7 @@ endif
OPT = -g -O0
CFLAGS = $(patsubst %,-I%/include,$(LIBPREFIX)) $(OPT) -std=c99 \
-Wall -Wno-unknown-pragmas
LDFLAGS = $(patsubst %,-L%/lib,$(LIBPREFIX)) $(OPT) -Wall
CC = gcc
COMPILE = $(CC) $(CFLAGS) -c -o

@ -368,7 +368,7 @@ void pipeline_create(
gPLProcessCount = num_threads();
gPLProcessThreads = malloc(gPLProcessCount * sizeof(pthread_t));
for (size_t i = 0; i < (int)(gPLProcessCount * 1.5 + 2); ++i) {
for (size_t i = 0; i < (int)(gPLProcessCount * 2 + 3); ++i) {
// create blocks, including a margin of error
pipeline_item_t *item = malloc(sizeof(pipeline_item_t));
item->data = create();

Loading…
Cancel
Save