Skip to content

Commit

Permalink
Merge branch 'main' into missing-write-barrier
Browse files Browse the repository at this point in the history
  • Loading branch information
noteflakes authored Sep 9, 2024
2 parents 889154f + 0e0a93d commit 9b6aacc
Show file tree
Hide file tree
Showing 5 changed files with 218 additions and 188 deletions.
4 changes: 4 additions & 0 deletions TODO.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,7 @@
# read or timeout in 3 seconds
ring.prep_read(fd: fd, buffer: +'', len: 4096, timeout: 3)
```

- Add support for ractors

https://news.ycombinator.com/item?id=41490988
4 changes: 2 additions & 2 deletions ext/iou/iou.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ struct buf_ring_descriptor {

#define BUFFER_RING_MAX_COUNT 10

typedef struct IOU_t {
typedef struct IOURing_t {
struct io_uring ring;
unsigned int ring_initialized;
unsigned int op_counter;
Expand All @@ -41,7 +41,7 @@ typedef struct IOU_t {

struct buf_ring_descriptor brs[BUFFER_RING_MAX_COUNT];
unsigned int br_counter;
} IOU_t;
} IOURing_t;

struct sa_data {
struct sockaddr addr;
Expand Down
4 changes: 2 additions & 2 deletions ext/iou/iou_ext.c
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
#include "iou.h"

void Init_IOU();
void Init_IOURing();
void Init_OpCtx();

void Init_iou_ext(void) {
Init_IOU();
Init_IOURing();
Init_OpCtx();
}
Loading

0 comments on commit 9b6aacc

Please sign in to comment.