Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
Isty001 committed Feb 11, 2017
2 parents bce888d + 1db93bb commit c5a6758
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,16 @@

Dynamic memory pool implementation, for reusable memory blocks, using `pthread mutex` locks

#### Installation with [clib](https://github.com/clibs/clib)

```
$ clib install isty001/mem-pool
```

#### Usage:

Initialize a new MemPool, with the given `block_size` and `increase_count`.
If it runs out of space, it'll create a new internal Buffer with `increase_count * block_size size`.
If it runs out of space, it'll create a new internal Buffer with `increase_count * block_size` size.

```c
#include "mem_pool.h"
Expand Down

0 comments on commit c5a6758

Please sign in to comment.