×

Synchronizing communication over shared memory

  • US 8,555,292 B2
  • Filed: 06/27/2008
  • Issued: 10/08/2013
  • Est. Priority Date: 06/27/2008
  • Status: Active Grant
First Claim
Patent Images

1. A method of communicating between a sender thread and a receiving thread through shared memory, the method comprising:

  • sending a first message by said sender thread by a polling transmission method comprising;

    storing said first message;

    changing a transmit index; and

    forcing a purge of a second memory pipeline for said sender thread after said changing said transmit index;

    receiving said first message by said receiving thread by a polling receiving method comprising;

    reading said transmit index to determine that said first message is ready to be read; and

    reading said first message;

    changing to a synchronization object receiving method by said receiving thread by a first changeover method comprising;

    forcing a purge of a first memory pipeline for said receiving thread prior to setting a wait object;

    setting said wait object, said wait object being an indicator that said receiving thread is not polling for messages;

    transmitting a second message by said sender thread by a synchronization object transmission method comprising;

    detecting that said wait object is set;

    setting an awake object;

    storing said second message; and

    changing said transmit index;

    determining that no new messages are available; and

    changing from a synchronization object receiving method by said receiving thread to said polling transmission method by a second changeover method comprising;

    receiving said awake object; and

    executing said polling receiving method.

View all claims
  • 2 Assignments
Timeline View
Assignment View
    ×
    ×