mirror of
https://github.com/cloudwu/skynet.git
synced 2026-07-25 04:33:05 +00:00
use stdatomic (#1317)
This commit is contained in:
@@ -9,7 +9,7 @@
|
||||
#include <string.h>
|
||||
|
||||
struct skynet_monitor {
|
||||
int version;
|
||||
ATOM_INT version;
|
||||
int check_version;
|
||||
uint32_t source;
|
||||
uint32_t destination;
|
||||
@@ -31,7 +31,7 @@ void
|
||||
skynet_monitor_trigger(struct skynet_monitor *sm, uint32_t source, uint32_t destination) {
|
||||
sm->source = source;
|
||||
sm->destination = destination;
|
||||
ATOM_INC(&sm->version);
|
||||
ATOM_FINC(&sm->version);
|
||||
}
|
||||
|
||||
void
|
||||
|
||||
Reference in New Issue
Block a user