Skip to content

Commit

Permalink
reformat
Browse files Browse the repository at this point in the history
  • Loading branch information
radkesvat committed Aug 3, 2024
1 parent 6cda125 commit d2332af
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion ww/generic_pool.h
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ static inline pool_item_t *popPoolItem(generic_pool_t *pool)
pool->in_use += 1;
#endif

if (pool->len > 0)
if (WW_LIKELY(pool->len > 0))
{
--(pool->len);
return pool->available[pool->len];
Expand Down
24 changes: 12 additions & 12 deletions ww/master_pool.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,31 +17,31 @@
|-----------|
| |
| |
| | -------------> |---------------|
| | | Worker 1 pools|
| | <------------- |---------------|
| | -------------> |----------------|
| | | Worker 1 pools |
| | <------------- |----------------|
| |
| |
| |
| |
| | -------------> |---------------|
| | | Worker 2 pools|
| | <------------- |---------------|
| | -------------> |----------------|
| | | Worker 2 pools |
| | <------------- |----------------|
|-----------| | |
| Malloc | -----------> | MASTER |
| -------- | | |
| Free | <----------- | POOL |
|-----------| | |
| | -------------> |---------------|
| | | Worker 3 pools|
| | <------------- |---------------|
| | -------------> |----------------|
| | | Worker 3 pools |
| | <------------- |----------------|
| |
| |
| |
| |
| | -------------> |---------------|
| | | Worker 4 pools|
| | <------------- |---------------|
| | -------------> |----------------|
| | | Worker 4 pools |
| | <------------- |----------------|
| |
| |
|-----------|
Expand Down

0 comments on commit d2332af

Please sign in to comment.