Harlequin RIP SDK
sw_rdr Struct Reference

Our internal representation of an RDR registration. More...

#include "rdrpriv.h"

Data Fields

sw_rdr_class Class
 
sw_rdr_priority Priority
 
void * ptr
 
size_t length
 
int lock
 
struct sw_rdrnext
 

Detailed Description

Our internal representation of an RDR registration.

These are never exposed to Providers or Consumers.

Currently this is a linked list stored in ascending order of Class, Type, Id and descending Priority, but this may be restructured if the RDR system gains significant use.

Note that when multithreading, an RDR could conceivably be deregistered by another thread after it has been found but before it has been accessed, so all such usage MUST be protected by mutex.

Field Documentation

◆ Class

sw_rdr_class sw_rdr::Class

Capitalised because VC recognises 'class'

◆ length

size_t sw_rdr::length

Provider's length

◆ lock

int sw_rdr::lock

Number of SwLockNextRDR() calls on this RDR

◆ next

struct sw_rdr* sw_rdr::next

A linked list (for now)

◆ Priority

sw_rdr_priority sw_rdr::Priority

Higher priorities take precedence

◆ ptr

void* sw_rdr::ptr

Provider's ptr


The documentation for this struct was generated from the following file: