Subversion Repositories HelenOS

Rev

Rev 2849 | Rev 2866 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 2849 Rev 2851
Line 246... Line 246...
246
 
246
 
247
    /* Finish debugging of all userspace threads */
247
    /* Finish debugging of all userspace threads */
248
    for (cur = ta->th_head.next; cur != &ta->th_head; cur = cur->next) {
248
    for (cur = ta->th_head.next; cur != &ta->th_head; cur = cur->next) {
249
        t = list_get_instance(cur, thread_t, th_link);
249
        t = list_get_instance(cur, thread_t, th_link);
250
 
250
 
-
 
251
        spinlock_lock(&t->debug_lock);
251
        spinlock_lock(&t->lock);
252
        spinlock_lock(&t->lock);
252
 
253
 
253
        flags = t->flags;
254
        flags = t->flags;
254
 
255
 
255
        spinlock_lock(&t->debug_lock);
-
 
256
        spinlock_unlock(&t->lock);
256
        spinlock_unlock(&t->lock);
257
 
257
 
258
        /* Only process userspace threads */
258
        /* Only process userspace threads */
259
        if ((flags & THREAD_FLAG_USPACE) != 0) {
259
        if ((flags & THREAD_FLAG_USPACE) != 0) {
260
            /* Prevent any further debug activity in thread */
260
            /* Prevent any further debug activity in thread */