typically wait for the parent thread to release it first. */
XSETBUFFER (buffer, self->m_current_buffer);
GCPRO1 (buffer);
- self->desired_buffer = (struct buffer *) buffer;
- self->m_current_buffer = 0;
+ self->m_current_buffer = (struct buffer *) buffer;
pthread_mutex_lock (&global_lock);
struct thread_state *it = all_threads;
for (; it; it = it->next_thread)
{
- if (b == it->desired_buffer)
- {
- register Lisp_Object buf;
- XSETBUFFER (buf, it->desired_buffer);
- tem = Fother_buffer (buf, Qnil, Qnil);
- it->desired_buffer = XBUFFER (tem);
- if (b == it->desired_buffer)
- return Qnil;
- }
-
if (b == it->m_current_buffer)
{
register Lisp_Object buf;
pthread_t pthread_id;
- /* Used internally by the scheduler, the buffer that the thread wants a lock
- for. */
- struct buffer *desired_buffer;
-
/* If nonzero the thread is blocked on a wait so it is not schedulable. */
int blocked;
};