Added the thread pool (w/Pthreads)

This commit is contained in:
2014-08-05 20:52:17 +01:00
parent 257ce14115
commit d14fd16446
11 changed files with 308 additions and 15 deletions

View File

@@ -45,6 +45,7 @@ OBJECTFILES= \
${OBJECTDIR}/src/mime.o \
${OBJECTDIR}/src/queue.o \
${OBJECTDIR}/src/socket.o \
${OBJECTDIR}/src/thread-pool.o \
${OBJECTDIR}/src/util.o
@@ -122,6 +123,11 @@ ${OBJECTDIR}/src/socket.o: nbproject/Makefile-${CND_CONF}.mk src/socket.c
${RM} "$@.d"
$(COMPILE.c) -g -Werror -DINI_ALLOW_BOM=0 -DINI_ALLOW_MULTILINE=0 -D_GNU_SOURCE -Ilib -std=c99 -MMD -MP -MF "$@.d" -o ${OBJECTDIR}/src/socket.o src/socket.c
${OBJECTDIR}/src/thread-pool.o: nbproject/Makefile-${CND_CONF}.mk src/thread-pool.c
${MKDIR} -p ${OBJECTDIR}/src
${RM} "$@.d"
$(COMPILE.c) -g -Werror -DINI_ALLOW_BOM=0 -DINI_ALLOW_MULTILINE=0 -D_GNU_SOURCE -Ilib -std=c99 -MMD -MP -MF "$@.d" -o ${OBJECTDIR}/src/thread-pool.o src/thread-pool.c
${OBJECTDIR}/src/util.o: nbproject/Makefile-${CND_CONF}.mk src/util.c
${MKDIR} -p ${OBJECTDIR}/src
${RM} "$@.d"

View File

@@ -45,6 +45,7 @@ OBJECTFILES= \
${OBJECTDIR}/src/mime.o \
${OBJECTDIR}/src/queue.o \
${OBJECTDIR}/src/socket.o \
${OBJECTDIR}/src/thread-pool.o \
${OBJECTDIR}/src/util.o
@@ -122,6 +123,11 @@ ${OBJECTDIR}/src/socket.o: nbproject/Makefile-${CND_CONF}.mk src/socket.c
${RM} "$@.d"
$(COMPILE.c) -O2 -Werror -DINI_ALLOW_BOM=0 -DINI_ALLOW_MULTILINE=0 -D_GNU_SOURCE -Ilib -std=c99 -MMD -MP -MF "$@.d" -o ${OBJECTDIR}/src/socket.o src/socket.c
${OBJECTDIR}/src/thread-pool.o: nbproject/Makefile-${CND_CONF}.mk src/thread-pool.c
${MKDIR} -p ${OBJECTDIR}/src
${RM} "$@.d"
$(COMPILE.c) -O2 -Werror -DINI_ALLOW_BOM=0 -DINI_ALLOW_MULTILINE=0 -D_GNU_SOURCE -Ilib -std=c99 -MMD -MP -MF "$@.d" -o ${OBJECTDIR}/src/thread-pool.o src/thread-pool.c
${OBJECTDIR}/src/util.o: nbproject/Makefile-${CND_CONF}.mk src/util.c
${MKDIR} -p ${OBJECTDIR}/src
${RM} "$@.d"

View File

@@ -14,6 +14,7 @@
<itemPath>src/mime.h</itemPath>
<itemPath>src/queue.h</itemPath>
<itemPath>src/socket.h</itemPath>
<itemPath>src/thread-pool.h</itemPath>
<itemPath>src/util.h</itemPath>
</logicalFolder>
<logicalFolder name="ResourceFiles"
@@ -33,6 +34,7 @@
<itemPath>src/mime.c</itemPath>
<itemPath>src/queue.c</itemPath>
<itemPath>src/socket.c</itemPath>
<itemPath>src/thread-pool.c</itemPath>
<itemPath>src/util.c</itemPath>
</logicalFolder>
<logicalFolder name="TestFiles"
@@ -129,6 +131,10 @@
</item>
<item path="src/socket.h" ex="false" tool="3" flavor2="0">
</item>
<item path="src/thread-pool.c" ex="false" tool="0" flavor2="0">
</item>
<item path="src/thread-pool.h" ex="false" tool="3" flavor2="0">
</item>
<item path="src/util.c" ex="false" tool="0" flavor2="0">
</item>
<item path="src/util.h" ex="false" tool="3" flavor2="0">
@@ -211,6 +217,10 @@
</item>
<item path="src/socket.h" ex="false" tool="3" flavor2="0">
</item>
<item path="src/thread-pool.c" ex="false" tool="0" flavor2="0">
</item>
<item path="src/thread-pool.h" ex="false" tool="3" flavor2="0">
</item>
<item path="src/util.c" ex="false" tool="0" flavor2="0">
</item>
<item path="src/util.h" ex="false" tool="3" flavor2="0">

View File

@@ -8,10 +8,16 @@
<open-files xmlns="http://www.netbeans.org/ns/projectui-open-files/2">
<group>
<file>file:/home/sam/NetBeansProjects/KHttp/src/socket.c</file>
<file>file:/home/sam/NetBeansProjects/KHttp/src/util.h</file>
<file>file:/home/sam/NetBeansProjects/KHttp/src/mime.c</file>
<file>file:/home/sam/NetBeansProjects/KHttp/src/config.c</file>
<file>file:/home/sam/NetBeansProjects/KHttp/src/mime.h</file>
<file>file:/home/sam/NetBeansProjects/KHttp/src/thread-pool.c</file>
<file>file:/home/sam/NetBeansProjects/KHttp/src/main.h</file>
<file>file:/home/sam/NetBeansProjects/KHttp/src/queue.c</file>
<file>file:/home/sam/NetBeansProjects/KHttp/src/main.c</file>
<file>file:/home/sam/NetBeansProjects/KHttp/lib/ut/utlist.h</file>
<file>file:/home/sam/NetBeansProjects/KHttp/src/thread-pool.h</file>
<file>file:/home/sam/NetBeansProjects/KHttp/src/queue.h</file>
<file>file:/home/sam/NetBeansProjects/KHttp/src/util.c</file>
</group>
</open-files>