Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset 7f122e3 in mainline


Ignore:
Timestamp:
2010-10-19T18:54:50Z (10 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
master
Children:
525df28
Parents:
3e20fd48
Message:

Add info for tracking what fibril synchronization onject a fibril waits for.

Location:
uspace/lib/c
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/c/generic/fibril.c

    r3e20fd48 r7f122e3  
    275275        fibril->func = func;
    276276        fibril->arg = arg;
     277
     278        fibril->waits_for = NULL;
    277279       
    278280        context_save(&fibril->ctx);
  • uspace/lib/c/include/fibril.h

    r3e20fd48 r7f122e3  
    4848#define FIBRIL_WRITER      2
    4949
     50struct fibril;
     51
     52typedef struct {
     53        struct fibril *owned_by;
     54} fibril_owner_info_t;
     55
    5056typedef enum {
    5157        FIBRIL_PREEMPT,
     
    6874        int retval;
    6975        int flags;
     76
     77        fibril_owner_info_t *waits_for;
    7078} fibril_t;
    7179
  • uspace/lib/c/include/fibril_synch.h

    r3e20fd48 r7f122e3  
    4141#include <libarch/tls.h>
    4242#include <sys/time.h>
    43 
    44 typedef struct {
    45         fibril_t *owned_by;
    46 } fibril_owner_info_t;
    4743
    4844typedef struct {
Note: See TracChangeset for help on using the changeset viewer.