~ubuntu-branches/ubuntu/saucy/nspr/saucy-updates

« back to all changes in this revision

Viewing changes to mozilla/nsprpub/pr/src/threads/prmon.c

  • Committer: Bazaar Package Importer
  • Author(s): Alexander Sack
  • Date: 2009-08-10 11:34:26 UTC
  • mfrom: (1.1.10 upstream)
  • Revision ID: james.westby@ubuntu.com-20090810113426-3uv4diflrkcbdimm
Tags: 4.8-0ubuntu1
* New upstream release: 4.8 (LP: #387812)
* adjust patches to changed upstreanm codebase
  - update debian/patches/99_configure.patch
* update shlibs symbols to include new API elements
  - update debian/libnspr4-0d.symbols

Show diffs side-by-side

added added

removed removed

Lines of Context:
145
145
}
146
146
 
147
147
/*
 
148
** If the current thread is in |mon|, this assertion is guaranteed to
 
149
** succeed.  Otherwise, the behavior of this function is undefined.
 
150
*/
 
151
PR_IMPLEMENT(void) PR_AssertCurrentThreadInMonitor(PRMonitor *mon)
 
152
{
 
153
    PR_ASSERT_CURRENT_THREAD_OWNS_LOCK(mon->cvar->lock);
 
154
}
 
155
 
 
156
/*
148
157
** Wait for a notify on the condition variable. Sleep for "ticks" amount
149
158
** of time (if "tick" is 0 then the sleep is indefinite). While
150
159
** the thread is waiting it exits the monitors lock (as if it called