]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
CLEANUP: thread: rename __decl_hathreads() to __decl_thread()
authorWilly Tarreau <w@1wt.eu>
Fri, 5 Jun 2020 06:40:51 +0000 (08:40 +0200)
committerWilly Tarreau <w@1wt.eu>
Thu, 11 Jun 2020 08:18:56 +0000 (10:18 +0200)
I can never figure whether it takes an "s" or not, and in the end it's
better if it matches the file's naming, so let's call it "__decl_thread".

34 files changed:
include/common/buffer.h
include/common/memory.h
include/haproxy/thread-t.h
include/proto/connection.h
include/proto/fd.h
include/proto/protocol.h
include/proto/server.h
include/proto/signal.h
include/proto/ssl_sock.h
include/proto/task.h
include/types/backend.h
include/types/dict.h
include/types/dns.h
include/types/listener.h
include/types/log.h
include/types/pattern.h
include/types/peers.h
include/types/proxy.h
include/types/ring.h
include/types/server.h
include/types/sink.h
include/types/spoe.h
include/types/ssl_sock.h
include/types/stick_table.h
include/types/task.h
include/types/vars.h
src/auth.c
src/fd.c
src/haproxy.c
src/listener.c
src/memory.c
src/server.c
src/ssl_sock.c
src/task.c

index 2f5f88253463aab782f344f8e1cbc89a02beed1d..cbefc6a2d98b923e8e7885685657e44728142bd0 100644 (file)
@@ -45,7 +45,7 @@ struct buffer_wait {
 
 extern struct pool_head *pool_head_buffer;
 extern struct mt_list buffer_wq;
-__decl_hathreads(extern HA_SPINLOCK_T buffer_wq_lock);
+__decl_thread(extern HA_SPINLOCK_T buffer_wq_lock);
 
 int init_buffer();
 void buffer_dump(FILE *o, struct buffer *b, int from, int to);
index 3858ae4eb37afaed0a96185019ff88316209cc1f..d5b3191b9b10ceeb9e6e963d390d0708bb2dd296 100644 (file)
@@ -87,7 +87,7 @@ struct pool_head {
 #ifdef CONFIG_HAP_LOCKLESS_POOLS
        uintptr_t seq;
 #endif
-       __decl_hathreads(HA_SPINLOCK_T lock); /* the spin lock */
+       __decl_thread(HA_SPINLOCK_T lock); /* the spin lock */
        unsigned int used;      /* how many chunks are currently in use */
        unsigned int needed_avg;/* floating indicator between used and allocated */
        unsigned int allocated; /* how many chunks have been allocated */
index d93324492eb73d65fa69efde0ba5f94e498ec74b..d54ec844693d9cf4bbd46ee0c46899513a5c4599 100644 (file)
@@ -44,7 +44,7 @@
 #define MAX_THREADS_MASK 1
 
 /* These macros allow to make some struct fields or local variables optional */
-#define __decl_hathreads(decl)
+#define __decl_thread(decl)
 #define __decl_spinlock(lock)
 #define __decl_aligned_spinlock(lock)
 #define __decl_rwlock(lock)
@@ -62,7 +62,7 @@
 
 #define MAX_THREADS_MASK (~0UL >> (LONGBITS - MAX_THREADS))
 
-#define __decl_hathreads(decl) decl
+#define __decl_thread(decl) decl
 
 /* declare a self-initializing spinlock */
 #define __decl_spinlock(lock)                               \
@@ -97,7 +97,7 @@
  * the pthread identifier which does not exist).
  */
 struct thread_info {
-       __decl_hathreads(pthread_t pthread);
+       __decl_thread(pthread_t pthread);
        clockid_t clock_id;
        timer_t wd_timer;          /* valid timer or TIMER_INVALID if not set */
        uint64_t prev_cpu_time;    /* previous per thread CPU time */
index 2efd629fca6eb6e8ead97ae2e6d98c2a615a2f8d..7ffe1fd8cfec7ebead0011f4a950041dad5ff8b8 100644 (file)
@@ -73,7 +73,7 @@ int conn_recv_socks4_proxy_response(struct connection *conn);
 /* If we delayed the mux creation because we were waiting for the handshake, do it now */
 int conn_create_mux(struct connection *conn);
 
-__decl_hathreads(extern HA_SPINLOCK_T toremove_lock[MAX_THREADS]);
+__decl_thread(extern HA_SPINLOCK_T toremove_lock[MAX_THREADS]);
 
 /* returns true is the transport layer is ready */
 static inline int conn_xprt_ready(const struct connection *conn)
index a3c476d079906feeeab2a4cb627bf7cd912b6291..9426e1447df7d52c8ffcd7b4e1f85947970fb323 100644 (file)
@@ -67,7 +67,7 @@ void fd_remove(int fd);
 int fd_takeover(int fd, void *expected_owner);
 
 #ifndef HA_HAVE_CAS_DW
-__decl_hathreads(extern HA_RWLOCK_T fd_mig_lock);
+__decl_thread(extern HA_RWLOCK_T fd_mig_lock);
 #endif
 
 ssize_t fd_write_frag_line(int fd, size_t maxlen, const struct ist pfx[], size_t npfx, const struct ist msg[], size_t nmsg, int nl);
index ee9e7e0c446b106844b07b2254b61c8de7e4ba28..36162a04b9a3e02e626faff0a9199c9de4cf2aea 100644 (file)
@@ -27,7 +27,7 @@
 #include <types/protocol.h>
 
 extern struct protocol *__protocol_by_family[AF_CUST_MAX];
-__decl_hathreads(extern HA_SPINLOCK_T proto_lock);
+__decl_thread(extern HA_SPINLOCK_T proto_lock);
 
 /* Registers the protocol <proto> */
 void protocol_register(struct protocol *proto);
index 4c4b4bf091f64c99083eecd7262b26d8e0cf60fe..e184310fc0055845717119f94fe8161d5b3821ff 100644 (file)
@@ -37,7 +37,7 @@
 #include <proto/freq_ctr.h>
 
 
-__decl_hathreads(extern HA_SPINLOCK_T idle_conn_srv_lock);
+__decl_thread(extern HA_SPINLOCK_T idle_conn_srv_lock);
 extern struct eb_root idle_conn_srv;
 extern struct task *idle_conn_task;
 extern struct task *idle_conn_cleanup[MAX_THREADS];
index 558fbc20aba1ff414ec337eb5c5d41ee0e58ff8e..b2fd2c891ccc41346d916ba450cee09353e6d738 100644 (file)
@@ -21,7 +21,7 @@
 extern int signal_queue_len;
 extern struct signal_descriptor signal_state[];
 
-__decl_hathreads(extern HA_SPINLOCK_T signals_lock);
+__decl_thread(extern HA_SPINLOCK_T signals_lock);
 
 void signal_handler(int sig);
 void __signal_process_queue();
index 6966512136ef240fc93a0b69ca3a7f950dc7d4f9..2cbd60b311888915d7ac507d0776281b09efa629 100644 (file)
@@ -41,7 +41,7 @@ extern int sctl_ex_index;
 extern struct global_ssl global_ssl;
 extern struct ssl_bind_kw ssl_bind_kws[];
 extern struct methodVersions methodVersions[];
-__decl_hathreads(extern HA_SPINLOCK_T ckch_lock);
+__decl_thread(extern HA_SPINLOCK_T ckch_lock);
 extern struct pool_head *pool_head_ssl_capture;
 extern unsigned int openssl_engines_initialized;
 extern int nb_engines;
index 668cee3f4cd350450d4ea67713145a70e29bf952..05b048b5abfcc6b7c6148f71472896955fb6da37 100644 (file)
@@ -102,8 +102,8 @@ extern int global_rqueue_size; /* Number of element sin the global runqueue */
 
 extern struct task_per_thread task_per_thread[MAX_THREADS];
 
-__decl_hathreads(extern HA_SPINLOCK_T rq_lock);  /* spin lock related to run queue */
-__decl_hathreads(extern HA_RWLOCK_T wq_lock);    /* RW lock related to the wait queue */
+__decl_thread(extern HA_SPINLOCK_T rq_lock);  /* spin lock related to run queue */
+__decl_thread(extern HA_RWLOCK_T wq_lock);    /* RW lock related to the wait queue */
 
 static inline struct task *task_unlink_wq(struct task *t);
 static inline void task_queue(struct task *task);
index 679805879e2f533c658c03034b89fa13862df85e..1e2b9df342c9d0a1695a7387a585eb5fd74f11c8 100644 (file)
@@ -158,7 +158,7 @@ struct lbprm {
        int   arg_opt2;                 /* extra option 2 for the LB algo (algo-specific) */
        int   arg_opt3;                 /* extra option 3 for the LB algo (algo-specific) */
        struct server *fbck;            /* first backup server when !PR_O_USE_ALL_BK, or NULL */
-       __decl_hathreads(HA_SPINLOCK_T lock);
+       __decl_thread(HA_SPINLOCK_T lock);
 
        /* Call backs for some actions. Any of them may be NULL (thus should be ignored). */
        void (*update_server_eweight)(struct server *);  /* to be called after eweight change */
index 980781692c0e9d279a85597448e7a001c39d040a..def6355233f9eaeaf307574963d04b0d0a2536c1 100644 (file)
@@ -13,7 +13,7 @@ struct dict_entry {
 struct dict {
        const char *name;
        struct eb_root values;
-       __decl_hathreads(HA_RWLOCK_T rwlock);
+       __decl_thread(HA_RWLOCK_T rwlock);
 };
 
 #endif /* _TYPES_DICT_H */
index 0a8bf72dbac0d03efc2c166ac14c5bbd8e5c909b..f504f5fbb25dd7b80cec8c7f5959f1eace2f0f03 100644 (file)
@@ -197,7 +197,7 @@ struct dns_resolvers {
        struct eb_root query_ids;           /* tree to quickly lookup/retrieve query ids currently in use
                                              * used by each nameserver, but stored in resolvers since there must
                                              * be a unique relation between an eb_root and an eb_node (resolution) */
-       __decl_hathreads(HA_SPINLOCK_T lock);
+       __decl_thread(HA_SPINLOCK_T lock);
        struct list list;                   /* resolvers list */
 };
 
index 50e208ed9620c38263fdb8393317855f25544cba..fddabb46f0425592504aaf0d1f4ab0ba719220b4 100644 (file)
@@ -156,7 +156,7 @@ struct bind_conf {
        struct ssl_bind_conf *default_ssl_conf; /* custom SSL conf of default_ctx */
        int strict_sni;            /* refuse negotiation if sni doesn't match a certificate */
        int ssl_options;           /* ssl options */
-       __decl_hathreads(HA_RWLOCK_T sni_lock); /* lock the SNI trees during add/del operations */
+       __decl_thread(HA_RWLOCK_T sni_lock); /* lock the SNI trees during add/del operations */
        struct eb_root sni_ctx;    /* sni_ctx tree of all known certs full-names sorted by name */
        struct eb_root sni_w_ctx;  /* sni_ctx tree of all known certs wildcards sorted by name */
        struct tls_keys_ref *keys_ref; /* TLS ticket keys reference */
@@ -217,7 +217,7 @@ struct listener {
        char *interface;                /* interface name or NULL */
        char *name;                     /* listener's name */
 
-       __decl_hathreads(HA_SPINLOCK_T lock);
+       __decl_thread(HA_SPINLOCK_T lock);
 
        const struct netns_entry *netns; /* network namespace of the listener*/
 
index ae7ce0b2f0b85ece30fba1b0554698355326e87e..cfafb919abc2b8f4a537daeda78e865c07269e41 100644 (file)
@@ -220,7 +220,7 @@ struct logsrv {
        int minlvl;
        int maxlen;
        struct logsrv *ref;
-       __decl_hathreads(HA_SPINLOCK_T lock);
+       __decl_thread(HA_SPINLOCK_T lock);
 };
 
 #endif /* _TYPES_LOG_H */
index 1a3e0766f4095995e9a62053c5b7aa2be014e2e0..aa3ab24ed197c222b98f3ad3b630d554a27620e2 100644 (file)
@@ -106,7 +106,7 @@ struct pat_ref {
        char *display; /* String displayed to identify the pattern origin. */
        struct list head; /* The head of the list of struct pat_ref_elt. */
        struct list pat; /* The head of the list of struct pattern_expr. */
-       __decl_hathreads(HA_SPINLOCK_T lock); /* Lock used to protect pat ref elements */
+       __decl_thread(HA_SPINLOCK_T lock); /* Lock used to protect pat ref elements */
 };
 
 /* This is a part of struct pat_ref. Each entry contain one
@@ -191,7 +191,7 @@ struct pattern_expr {
        struct eb_root pattern_tree;  /* may be used for lookup in large datasets */
        struct eb_root pattern_tree_2;  /* may be used for different types */
        int mflags;                     /* flags relative to the parsing or matching method. */
-       __decl_hathreads(HA_RWLOCK_T lock);               /* lock used to protect patterns */
+       __decl_thread(HA_RWLOCK_T lock);               /* lock used to protect patterns */
 };
 
 /* This is a list of expression. A struct pattern_expr can be used by
index b3e1e4429398a353cd482af6809586095d3ce6e1..4bd06802adfe6174e7933a247afd1a3eb3274f29 100644 (file)
@@ -76,7 +76,7 @@ struct peer {
        struct shared_table *tables;
        struct server *srv;
        struct dcache *dcache;        /* dictionary cache */
-       __decl_hathreads(HA_SPINLOCK_T lock); /* lock used to handle this peer section */
+       __decl_thread(HA_SPINLOCK_T lock); /* lock used to handle this peer section */
        struct peer *next;            /* next peer in the list */
 };
 
index aa1ad3583c926eb7b2f276d681b4cecd3d05ac92..ca642e2a4bfaf429cb369b94fb34b36cc7428945 100644 (file)
@@ -271,7 +271,7 @@ struct email_alertq {
                                         * code even though they are not checks. This structure
                                         * is as a parameter to the check code.
                                         * Each check corresponds to a mailer */
-       __decl_hathreads(HA_SPINLOCK_T lock);
+       __decl_thread(HA_SPINLOCK_T lock);
 };
 
 struct proxy {
@@ -466,7 +466,7 @@ struct proxy {
                                                 * name is used
                                                 */
        struct list filter_configs;             /* list of the filters that are declared on this proxy */
-       __decl_hathreads(HA_SPINLOCK_T lock);   /* may be taken under the server's lock */
+       __decl_thread(HA_SPINLOCK_T lock);   /* may be taken under the server's lock */
 };
 
 struct switching_rule {
index f5084445a6b1b0fcf36f176b8cc6345bd1ffc488..b512b07d29157be40c9e5b7ff5397401d0d05d09 100644 (file)
@@ -96,7 +96,7 @@ struct ring {
        struct buffer buf;   // storage area
        size_t ofs;          // absolute offset in history of the buffer's head
        struct list waiters; // list of waiters, for now, CLI "show event"
-       __decl_hathreads(HA_RWLOCK_T lock);
+       __decl_thread(HA_RWLOCK_T lock);
        int readers_count;
 };
 
index 0bc5319df5e15a3703a76ae9ec1519abb22f3bb6..e4afff4a6e23cb07aa243cdbab4fc67104fb6eff 100644 (file)
@@ -331,7 +331,7 @@ struct server {
        } ssl_ctx;
 #endif
        struct dns_srvrq *srvrq;                /* Pointer representing the DNS SRV requeest, if any */
-       __decl_hathreads(HA_SPINLOCK_T lock);   /* may enclose the proxy's lock, must not be taken under */
+       __decl_thread(HA_SPINLOCK_T lock);   /* may enclose the proxy's lock, must not be taken under */
        struct {
                const char *file;               /* file where the section appears */
                struct eb32_node id;            /* place in the tree of used IDs */
index b10cb891236247bd15f93a2a8840dc14784e4751..3feb05ddf753fdc61af0d3d7db62da4026effd34 100644 (file)
@@ -52,7 +52,7 @@ struct sink_forward_target {
        struct server *srv;    // used server
        struct appctx *appctx; // appctx of current session
        size_t ofs;            // ring buffer reader offset
-       __decl_hathreads(HA_SPINLOCK_T lock); // lock to protect current struct
+       __decl_thread(HA_SPINLOCK_T lock); // lock to protect current struct
        struct sink_forward_target *next;
 };
 
@@ -69,7 +69,7 @@ struct sink {
        struct task *forward_task; // task to handle forward targets conns
        struct sig_handler *forward_sighandler; /* signal handler */
        struct {
-               __decl_hathreads(HA_RWLOCK_T lock); // shared/excl for dropped
+               __decl_thread(HA_RWLOCK_T lock); // shared/excl for dropped
                struct ring *ring;    // used by ring buffer and STRM sender
                unsigned int dropped; // dropped events since last one.
                int fd;               // fd num for FD type sink
index 562e9f21fe8c65061234604f70bf56b0f0147e8e..aa3d5d103d85a3b4f90375caacddff6e3a71ae8d 100644 (file)
@@ -275,7 +275,7 @@ struct spoe_agent {
                struct list     applets;        /* all SPOE applets for this agent */
                struct list     sending_queue;  /* Queue of streams waiting to send data */
                struct list     waiting_queue;  /* Queue of streams waiting for a ack, in async mode */
-               __decl_hathreads(HA_SPINLOCK_T lock);
+               __decl_thread(HA_SPINLOCK_T lock);
        } *rt;
 
        struct {
index c8a068173e61a6db814e200e5716bd6e20f71c28..27633ecbd1800906f7460d58cda28c64f544ef62 100644 (file)
@@ -161,7 +161,7 @@ struct tls_keys_ref {
        union tls_sess_key *tlskeys;
        int tls_ticket_enc_index;
        int key_size_bits;
-       __decl_hathreads(HA_RWLOCK_T lock); /* lock used to protect the ref */
+       __decl_thread(HA_RWLOCK_T lock); /* lock used to protect the ref */
 };
 
 /* shared ssl session */
index 832ecd25a204bf30eabaa72d9cad882a59a9a8cb..61ca5223a3cb1dc1dee77747b073178c11828c95 100644 (file)
@@ -139,7 +139,7 @@ extern struct stktable_type stktable_types[];
 struct stksess {
        unsigned int expire;      /* session expiration date */
        unsigned int ref_cnt;     /* reference count, can only purge when zero */
-       __decl_hathreads(HA_RWLOCK_T lock); /* lock related to the table entry */
+       __decl_thread(HA_RWLOCK_T lock); /* lock related to the table entry */
        struct eb32_node exp;     /* ebtree node used to hold the session in expiration tree */
        struct eb32_node upd;     /* ebtree node used to hold the update sequence tree */
        struct ebmb_node key;     /* ebtree node used to hold the session in table */
@@ -163,7 +163,7 @@ struct stktable {
        struct eb_root exps;      /* head of sticky session expiration tree */
        struct eb_root updates;   /* head of sticky updates sequence tree */
        struct pool_head *pool;   /* pool used to allocate sticky sessions */
-       __decl_hathreads(HA_SPINLOCK_T lock); /* spin lock related to the table */
+       __decl_thread(HA_SPINLOCK_T lock); /* spin lock related to the table */
        struct task *exp_task;    /* expiration task */
        struct task *sync_task;   /* sync task */
        unsigned int update;
index fe945df273ef83771fb7ce906282c60a37701541..6515d464a9dbdbcf2a4bb5c23c686cdf7b68be53 100644 (file)
@@ -64,7 +64,7 @@ struct notification {
        struct list wake_me; /* Part of list of signals to be targeted if an
                                event occurs. */
        struct task *task; /* The task to be wake if an event occurs. */
-       __decl_hathreads(HA_SPINLOCK_T lock);
+       __decl_thread(HA_SPINLOCK_T lock);
 };
 
 /* force to split per-thread stuff into separate cache lines */
index e7d71d34d92121464dfbcee4adc2f7a17b904564..62b944b258d15df81f434ef312fdac6d093e2779 100644 (file)
@@ -19,7 +19,7 @@ struct vars {
        struct list head;
        enum vars_scope scope;
        unsigned int size;
-       __decl_hathreads(HA_RWLOCK_T rwlock);
+       __decl_thread(HA_RWLOCK_T rwlock);
 };
 
 /* This struct describes a variable. */
index 4decf84c9828fafbae4ad6ce5a827c3489d178f7..2058f1fe2f96fdc1fee724253c343b8303a088af 100644 (file)
@@ -44,7 +44,7 @@ struct userlist *userlist = NULL;    /* list of all existing userlists */
 static THREAD_LOCAL struct crypt_data crypt_data = { .initialized = 0 };
 #else
 /* lock for crypt() */
-__decl_hathreads(static HA_SPINLOCK_T auth_lock);
+__decl_thread(static HA_SPINLOCK_T auth_lock);
 #endif
 #endif
 
index f4aa83b7a193160f2af5bc3e237b6a4e922f17c0..c7bc54efafa661c0305dd7c62a09ad1be7487f14 100644 (file)
--- a/src/fd.c
+++ b/src/fd.c
@@ -335,7 +335,7 @@ static void fd_dodelete(int fd, int do_close)
 }
 
 #ifndef HA_HAVE_CAS_DW
-__decl_hathreads(__decl_rwlock(fd_mig_lock));
+__decl_thread(__decl_rwlock(fd_mig_lock));
 #endif
 
 /*
index b1853cf1bd8fd172ccd3791e1e3dc6fe93f3e68e..67e423783a79bb6ace4e8f93ab1ec5d74e4d23cb 100644 (file)
@@ -2949,8 +2949,8 @@ static void *run_thread_poll_loop(void *data)
        struct per_thread_deinit_fct *ptdf;
        struct per_thread_free_fct   *ptff;
        static int init_left = 0;
-       __decl_hathreads(static pthread_mutex_t init_mutex = PTHREAD_MUTEX_INITIALIZER);
-       __decl_hathreads(static pthread_cond_t  init_cond  = PTHREAD_COND_INITIALIZER);
+       __decl_thread(static pthread_mutex_t init_mutex = PTHREAD_MUTEX_INITIALIZER);
+       __decl_thread(static pthread_cond_t  init_cond  = PTHREAD_COND_INITIALIZER);
 
        ha_set_tid((unsigned long)data);
        sched = &task_per_thread[tid];
index c035ed84198d84509d1e575df548e4d4391b4933..3315d60e78a0ef3b547f119bb2c933bd7f3ee1b9 100644 (file)
@@ -735,7 +735,7 @@ void listener_accept(int fd)
                struct sockaddr_storage addr;
                socklen_t laddr = sizeof(addr);
                unsigned int count;
-               __decl_hathreads(unsigned long mask);
+               __decl_thread(unsigned long mask);
 
                /* pre-increase the number of connections without going too far.
                 * We process the listener, then the proxy, then the process.
index 0bca7127815d65190459e8d7a764171998ba29f9..a0e57c7d891e52caba145b9a7cc511157abaefe5 100644 (file)
@@ -600,7 +600,7 @@ INITCALL1(STG_REGISTER, cli_register_kw, &cli_kws);
 #define MEM_FAIL_MAX_STR 128
 static int mem_fail_cur_idx;
 static char mem_fail_str[MEM_FAIL_MAX_CHAR * MEM_FAIL_MAX_STR];
-__decl_hathreads(static HA_SPINLOCK_T mem_fail_lock);
+__decl_thread(static HA_SPINLOCK_T mem_fail_lock);
 
 int mem_should_fail(const struct pool_head *pool)
 {
index 791747c3128c478f4be922b2d5d9ea9e888f8c2f..bdf2c994db781ce606a1931a88a14da5393cc186 100644 (file)
@@ -61,12 +61,12 @@ static struct srv_kw_list srv_keywords = {
        .list = LIST_HEAD_INIT(srv_keywords.list)
 };
 
-__decl_hathreads(HA_SPINLOCK_T idle_conn_srv_lock);
+__decl_thread(HA_SPINLOCK_T idle_conn_srv_lock);
 struct eb_root idle_conn_srv = EB_ROOT;
 struct task *idle_conn_task = NULL;
 struct task *idle_conn_cleanup[MAX_THREADS] = { NULL };
 struct mt_list toremove_connections[MAX_THREADS];
-__decl_hathreads(HA_SPINLOCK_T toremove_lock[MAX_THREADS]);
+__decl_thread(HA_SPINLOCK_T toremove_lock[MAX_THREADS]);
 
 /* The server names dictionary */
 struct dict server_name_dict = {
index c2bea22a09878134bcf19a95f7eade17b0080af0..0b0b4b9f12d2679aa7a33aa3dad8dfed46ec69b3 100644 (file)
@@ -272,7 +272,7 @@ static int ssl_locking_init(void)
 
 #endif
 
-__decl_hathreads(HA_SPINLOCK_T ckch_lock);
+__decl_thread(HA_SPINLOCK_T ckch_lock);
 
 
 /*
index fc0978787758691bcf37a85e898352f6ab7c0ca8..55a54a47125b23143d5eab10cb1cefc5dade01d3 100644 (file)
@@ -162,7 +162,7 @@ void wake_expired_tasks()
        struct task_per_thread * const tt = sched; // thread's tasks
        struct task *task;
        struct eb32_node *eb;
-       __decl_hathreads(int key);
+       __decl_thread(int key);
 
        while (1) {
   lookup_next_local:
@@ -284,7 +284,7 @@ int next_timer_expiry()
        struct task_per_thread * const tt = sched; // thread's tasks
        struct eb32_node *eb;
        int ret = TICK_ETERNITY;
-       __decl_hathreads(int key);
+       __decl_thread(int key);
 
        /* first check in the thread-local timers */
        eb = eb32_lookup_ge(&tt->timers, now_ms - TIMER_LOOK_BACK);