You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

YitIdHelper.h 402 B

4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
12345678910111213141516171819
  1. /*
  2. * 版权属于:yitter(yitter@126.com)
  3. * 开源地址:https://gitee.com/yitter/idgenerator
  4. */
  5. #pragma once
  6. #include "idgen/IdGenOptions.h"
  7. #include "idgen/common.h"
  8. TAP_DLLEXPORT
  9. extern void TAP_STDCALL SetIdGenerator(IdGeneratorOptions options);
  10. TAP_DLLEXPORT
  11. extern void TAP_STDCALL SetWorkerId(uint32_t workerId);
  12. TAP_DLLEXPORT
  13. extern int64_t TAP_STDCALL NextId();