diff options
author | Dmitry Kozlov <xeb@mail.ru> | 2014-05-18 21:21:19 +0000 |
---|---|---|
committer | Dmitry Kozlov <xeb@mail.ru> | 2014-05-18 21:21:19 +0000 |
commit | c7ad0e5361df5dbca9c99c2d65b4d603f6475f6d (patch) | |
tree | 2df68c8169d3f2b0abd538cc737bc0c195fd88b3 /accel-pppd/triton/triton_p.h | |
parent | c87cad6b0e447bcd77d1c450fbd11f429cb84cc5 (diff) | |
download | accel-ppp-c7ad0e5361df5dbca9c99c2d65b4d603f6475f6d.tar.gz accel-ppp-c7ad0e5361df5dbca9c99c2d65b4d603f6475f6d.zip |
triton: fix possible race
Diffstat (limited to 'accel-pppd/triton/triton_p.h')
-rw-r--r-- | accel-pppd/triton/triton_p.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/accel-pppd/triton/triton_p.h b/accel-pppd/triton/triton_p.h index 443cedea..94017293 100644 --- a/accel-pppd/triton/triton_p.h +++ b/accel-pppd/triton/triton_p.h @@ -41,6 +41,7 @@ struct _triton_context_t int need_free; int pending; int priority; + int refs; struct triton_context_t *ud; void *bf_arg; @@ -107,5 +108,6 @@ int conf_reload(const char *fname); void triton_log_error(const char *fmt, ...) __attribute__((format(gnu_printf, 1, 2))); void triton_log_debug(const char *fmt, ...) __attribute__((format(gnu_printf, 1, 2))); int load_modules(const char *name); +void triton_context_release(struct _triton_context_t *ctx); #endif |