You are currently viewing a snapshot of www.mozilla.org taken on April 21, 2008. Most of this content is highly out of date (some pages haven't been updated since the project began in 1998) and exists for historical purposes only. If there are any pages on this archive site that you think should be added back to www.mozilla.org, please file a bug.



First page Back Continue Last page Summary Graphic

What Not to Do

  • 1 PRLock *lock;

  • 2 PRCondVar *cv;

  • 3 PR_Lock( lock );

  • 4 PR_WaitCondVar( cv, PR_INTERVAL_NO_TIMEOUT );

  • /* implies state in *cv */

  • 5 /* do something */

  • 6 PR_Unlock( lock );

  • There is no state in a PRCondVar.


Notes: