Changeset 09ab0a9a in mainline for kernel/generic/src/synch/workqueue.c
- Timestamp:
- 2018-09-13T12:05:53Z (6 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- cc74cb5
- Parents:
- b2aaaa0
- git-author:
- Jiri Svoboda <jiri@…> (2018-09-13 07:09:46)
- git-committer:
- Jiri Svoboda <jiri@…> (2018-09-13 12:05:53)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/src/synch/workqueue.c
rb2aaaa0 r09ab0a9a 52 52 #define WORK_ITEM_MAGIC 0xfeec1777U 53 53 54 55 54 struct work_queue { 56 55 /* … … 96 95 }; 97 96 98 99 97 /** Min number of idle workers to keep. */ 100 98 static size_t min_worker_cnt; … … 111 109 static int booting = true; 112 110 113 114 111 typedef struct { 115 112 IRQ_SPINLOCK_DECLARE(lock); … … 121 118 static nonblock_adder_t nonblock_adder; 122 119 123 124 125 120 /** Typedef a worker thread signaling operation prototype. */ 126 121 typedef void (*signal_op_t)(struct work_queue *workq); 127 128 122 129 123 /* Fwd decl. */ … … 790 784 --workq->idle_worker_cnt; 791 785 } 792 793 786 794 787 /** Invoked from thread_ready() right before the thread is woken up. */ … … 888 881 } 889 882 890 891 883 static bool dequeue_add_req(nonblock_adder_t *info, struct work_queue **pworkq) 892 884 { … … 925 917 } 926 918 } 927 928 919 929 920 static void nonblock_init(void)
Note:
See TracChangeset
for help on using the changeset viewer.