Skip to content

Commit b65e606

Browse files
committed
docs + reverse thread ending hook (issue #17)
1 parent 0d949a4 commit b65e606

File tree

4 files changed

+12
-4
lines changed

4 files changed

+12
-4
lines changed

fio-stl.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10198,8 +10198,6 @@ typedef enum {
1019810198
FIO_CALL_IN_MASTER,
1019910199
/** Called by each worker thread in a Server Async queue as it starts. */
1020010200
FIO_CALL_ON_WORKER_THREAD_START,
10201-
/** Called by each worker thread in a Server Async queue as it ends. */
10202-
FIO_CALL_ON_WORKER_THREAD_END,
1020310201
/** Called every time a *Worker* process starts. */
1020410202
FIO_CALL_ON_START,
1020510203
/** Reserved for internal use. */
@@ -10226,6 +10224,8 @@ typedef enum {
1022610224
FIO_CALL_ON_PARENT_CRUSH,
1022710225
/** Called by the parent (master) after a worker process crashed. */
1022810226
FIO_CALL_ON_CHILD_CRUSH,
10227+
/** Called by each worker thread in a Server Async queue as it ends. */
10228+
FIO_CALL_ON_WORKER_THREAD_END,
1022910229
/** Called just before finishing up (both on child and parent processes). */
1023010230
FIO_CALL_ON_FINISH,
1023110231
/** An alternative to the system's at_exit. */

fio-stl.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3838,6 +3838,8 @@ typedef enum {
38383838
FIO_CALL_IN_CHILD,
38393839
/** Called by the master process after spawning a worker (after forking). */
38403840
FIO_CALL_IN_MASTER,
3841+
/** Called by each worker thread in a Server Async queue as it starts. */
3842+
FIO_CALL_ON_WORKER_THREAD_START,
38413843
/** Called every time a *Worker* process starts. */
38423844
FIO_CALL_ON_START,
38433845
/** Reserved for internal use. */
@@ -3867,6 +3869,8 @@ typedef enum {
38673869
FIO_CALL_ON_PARENT_CRUSH,
38683870
/** Called by the parent (master) after a worker process crashed. */
38693871
FIO_CALL_ON_CHILD_CRUSH,
3872+
/** Called by each worker thread in a Server Async queue as it ends. */
3873+
FIO_CALL_ON_WORKER_THREAD_END,
38703874
/** Called just before finishing up (both on child and parent processes). */
38713875
FIO_CALL_ON_FINISH,
38723876
/** An alternative to the system's at_exit. */

fio-stl/004 state callbacks.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,6 @@ typedef enum {
4242
FIO_CALL_IN_MASTER,
4343
/** Called by each worker thread in a Server Async queue as it starts. */
4444
FIO_CALL_ON_WORKER_THREAD_START,
45-
/** Called by each worker thread in a Server Async queue as it ends. */
46-
FIO_CALL_ON_WORKER_THREAD_END,
4745
/** Called every time a *Worker* process starts. */
4846
FIO_CALL_ON_START,
4947
/** Reserved for internal use. */
@@ -70,6 +68,8 @@ typedef enum {
7068
FIO_CALL_ON_PARENT_CRUSH,
7169
/** Called by the parent (master) after a worker process crashed. */
7270
FIO_CALL_ON_CHILD_CRUSH,
71+
/** Called by each worker thread in a Server Async queue as it ends. */
72+
FIO_CALL_ON_WORKER_THREAD_END,
7373
/** Called just before finishing up (both on child and parent processes). */
7474
FIO_CALL_ON_FINISH,
7575
/** An alternative to the system's at_exit. */

fio-stl/004 state callbacks.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@ typedef enum {
4040
FIO_CALL_IN_CHILD,
4141
/** Called by the master process after spawning a worker (after forking). */
4242
FIO_CALL_IN_MASTER,
43+
/** Called by each worker thread in a Server Async queue as it starts. */
44+
FIO_CALL_ON_WORKER_THREAD_START,
4345
/** Called every time a *Worker* process starts. */
4446
FIO_CALL_ON_START,
4547
/** Reserved for internal use. */
@@ -69,6 +71,8 @@ typedef enum {
6971
FIO_CALL_ON_PARENT_CRUSH,
7072
/** Called by the parent (master) after a worker process crashed. */
7173
FIO_CALL_ON_CHILD_CRUSH,
74+
/** Called by each worker thread in a Server Async queue as it ends. */
75+
FIO_CALL_ON_WORKER_THREAD_END,
7276
/** Called just before finishing up (both on child and parent processes). */
7377
FIO_CALL_ON_FINISH,
7478
/** An alternative to the system's at_exit. */

0 commit comments

Comments
 (0)