atomic windows

This commit is contained in:
dmchen 2023-11-03 09:17:21 +00:00
parent 84545d4e8d
commit d0b6fc2ba6
2 changed files with 3 additions and 1 deletions

View File

@ -20,6 +20,8 @@
extern "C" {
#endif
#include "tdef.h"
// If the error is in a third-party library, place this header file under the third-party library header file.
// When you want to use this feature, you should find or add the same function in the following section.
#ifndef ALLOW_FORBID_FUNC

View File

@ -24,7 +24,7 @@
#include "taos_log.h"
#include "taos_metric_sample_i.h"
#include "taos_metric_sample_t.h"
#include "os.h"
#include "osAtomic.h"
taos_metric_sample_t *taos_metric_sample_new(taos_metric_type_t type, const char *l_value, double r_value) {
taos_metric_sample_t *self = (taos_metric_sample_t *)taos_malloc(sizeof(taos_metric_sample_t));