| 499 | } |
| 500 | |
| 501 | const char *GraphContext_GetAttributeString |
| 502 | ( |
| 503 | GraphContext *gc, |
| 504 | Attribute_ID id |
| 505 | ) { |
| 506 | ASSERT(gc != NULL); |
| 507 | ASSERT(id >= 0 && id < array_len(gc->string_mapping)); |
| 508 | |
| 509 | pthread_rwlock_rdlock(&gc->_attribute_rwlock); |
| 510 | const char *name = gc->string_mapping[id]; |
| 511 | pthread_rwlock_unlock(&gc->_attribute_rwlock); |
| 512 | return name; |
| 513 | } |
| 514 | |
| 515 | Attribute_ID GraphContext_GetAttributeID |
| 516 | ( |
no test coverage detected