X-Git-Url: https://code.citadel.org/?p=citadel.git;a=blobdiff_plain;f=libcitadel%2Flib%2Flibcitadel.h;h=ff87152b2fddba66ae7fc70aff72631cf215e748;hp=021caf8d08fc2acd0cb17532e92d07c64560836b;hb=7a00f6e42ba3af8be6d882054faa1744e7ffbf17;hpb=01f1ff4479779faf97aea66050d5940e6c8f3ddd diff --git a/libcitadel/lib/libcitadel.h b/libcitadel/lib/libcitadel.h index 021caf8d0..ff87152b2 100644 --- a/libcitadel/lib/libcitadel.h +++ b/libcitadel/lib/libcitadel.h @@ -609,4 +609,8 @@ extern ConstStr RoomNetCfgStrs[maxRoomNetCfg]; /* Convenience function to "perform a function and cut a log record if result != 0" */ #define CtdlLogResult(x) if (x) syslog(LOG_CRIT, "%s:%d %s", __FILE__, __LINE__, strerror(errno)) +/* a nice consistent place to define how we turn a message id into a thread id hash */ +#define ThreadIdHash(Buf) abs(HashLittle(ChrPtr(Buf), StrLength(Buf))) + + #endif // LIBCITADEL_H