diff options
author | eb | 2008-06-19 00:06:42 +0000 |
---|---|---|
committer | eb | 2008-06-19 00:06:42 +0000 |
commit | df0ae475f782814c95d4f9be166aaffbcc7d47b1 (patch) | |
tree | cd7076e4a5fb524b393e8ad9d9a5ef29e7a8e5da /gcell/src/include/gc_jd_queue_data.h | |
parent | a22202008689a4a893c29af118febf5c57cb8103 (diff) | |
download | gnuradio-df0ae475f782814c95d4f9be166aaffbcc7d47b1.tar.gz gnuradio-df0ae475f782814c95d4f9be166aaffbcc7d47b1.tar.bz2 gnuradio-df0ae475f782814c95d4f9be166aaffbcc7d47b1.zip |
Merged eb/gcell-wip -r8559:8571 into trunk. The shared queue
structure is slightly modified, and the spu dequeue has been
streamlined. In addition, the spu Lost-Lock Line Reservation event is
now work correctly, though it is still disabled because it's slower
than the expontial backoff alternative.
git-svn-id: http://gnuradio.org/svn/gnuradio/trunk@8618 221aa14e-8319-0410-a670-987f0aec2ac5
Diffstat (limited to 'gcell/src/include/gc_jd_queue_data.h')
-rw-r--r-- | gcell/src/include/gc_jd_queue_data.h | 27 |
1 files changed, 5 insertions, 22 deletions
diff --git a/gcell/src/include/gc_jd_queue_data.h b/gcell/src/include/gc_jd_queue_data.h index e5fa87499..3fd7270d5 100644 --- a/gcell/src/include/gc_jd_queue_data.h +++ b/gcell/src/include/gc_jd_queue_data.h @@ -35,31 +35,14 @@ __GC_BEGIN_DECLS * work. SPE's dequeue from here. * * FIXME make it lock free ;) For now, use a spin lock. + * + * (Fills a single cache line) */ - -typedef struct gc_jd_q_links -{ - gc_eaddr_t head _AL16; - gc_eaddr_t tail _AL16; -} gc_jd_q_links_t; - -typedef struct gc_jd_q_mutex -{ - uint32_t mutex; // libsync mutex (spin lock) - uint32_t _pad[31]; // pad to cache line so we can use putlluc on SPE -} _AL128 gc_jd_q_mutex_t; - -typedef struct gc_jd_q_flag -{ - uint32_t flag; // host writes this after enqueuing - uint32_t _pad[31]; // pad to cache line -} _AL128 gc_jd_q_flag_t; - typedef struct gc_jd_queue { - gc_jd_q_links_t l; - gc_jd_q_mutex_t m; - gc_jd_q_flag_t f; + gc_eaddr_t head _AL16; + gc_eaddr_t tail _AL16; + uint32_t mutex _AL16; // libsync mutex (spin lock) } _AL128 gc_jd_queue_t; __GC_END_DECLS |